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

[fix] py3 error : 'str' object has no attribute 'read'

parent b99199e8
No related branches found
No related tags found
2 merge requests!12331.6,!1227Change Vagrant with docker for building Debian
...@@ -38,8 +38,7 @@ def get_current_message(): ...@@ -38,8 +38,7 @@ def get_current_message():
tag_url += ci_commit_tag tag_url += ci_commit_tag
request = urllib.request.Request(tag_url) request = urllib.request.Request(tag_url)
response = urllib.request.urlopen(request) response = urllib.request.urlopen(request)
data = json.load(response.decode())
data = json.load(response.read().decode())
if data['release'] is None: if data['release'] is None:
return False, '' return False, ''
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment