Forgot the conn variable for non-dev api calls

This commit is contained in:
Dionysus 2023-10-18 10:40:52 -04:00
parent d168eeaa64
commit add285df02
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class API(object):
if not self.dev:
conn = http.client.HTTPSConnection('api.manrs.org')
else:
http.client.HTTPSConnection('api-dev.manrs.org')
conn = http.client.HTTPSConnection('api-dev.manrs.org')
conn.request('GET', endpoint, headers=headers)
res = conn.getresponse()
data = res.read()