Skip to content
Snippets Groups Projects
Commit f4a70012 authored by releaser-duniter's avatar releaser-duniter
Browse files

extract body of api response

parent eadd4a29
No related branches found
No related tags found
2 merge requests!12331.6,!1227Change Vagrant with docker for building Debian
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment