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

View File

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