Forgot the conn variable for non-dev api calls

This commit is contained in:
2023-10-18 10:40:52 -04:00
parent d168eeaa64
commit add285df02

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()