Forgot the conn variable for non-dev api calls
This commit is contained in:
parent
d168eeaa64
commit
add285df02
2
manrs.py
2
manrs.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user