Commit f4a70012 authored by releaser-duniter's avatar releaser-duniter
Browse files

extract body of api response

parent eadd4a29
......@@ -14,7 +14,8 @@ def get_current_message():
response = urllib.request.urlopen(request)
print('status: %s' % response.status)
print('headers:', response.headers)
data = json.load(response)
response_body = response.read()
data = json.load(response_body)
if data['release'] is None:
return False, ''
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment