Commit 431b014b authored by releaser-duniter's avatar releaser-duniter
Browse files

Update test.py

parent f4a70012
......@@ -14,8 +14,8 @@ def get_current_message():
response = urllib.request.urlopen(request)
print('status: %s' % response.status)
print('headers:', response.headers)
response_body = response.read()
data = json.load(response_body)
response_data = response.read().decode()
data = json.load(response_data)
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