manrs

- python class for the manrs api
git clone git://git.acid.vegas/manrs.git
Log | Files | Refs | Archive | README | LICENSE

commit add285df02107212a3e82ff9bd65ab50421deffb
parent d168eeaa64fca8caa7adffabc284ecfedbbd7f12
Author: acidvegas <acid.vegas@acid.vegas>
Date: Wed, 18 Oct 2023 10:40:52 -0400

Forgot the conn variable for non-dev api calls

Diffstat:
Mmanrs.py | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/manrs.py b/manrs.py
@@ -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()