Skip to content

Commit

Permalink
decode json response
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Kummer committed Dec 18, 2017
1 parent 88e4d5e commit 84401a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BlenderUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ def __init__(self, parent=None):
sys.exit()
# Check for new version on github
try:
Appupdate = urllib.request.urlopen('https://api.github.com/repos/tobkum/BlenderUpdater/releases/latest')
Appupdate = urllib.request.urlopen('https://api.github.com/repos/tobkum/BlenderUpdater/releases/latest').read().decode('utf-8')
except Exception:
QtWidgets.QMessageBox.critical(
self, "Error", "Unable to get update information")
logging.error('Unable to get update information from GitHub')
UpdateData = json.load(Appupdate)
UpdateData = json.loads(Appupdate)
applatestversion = UpdateData['tag_name']
# print(UpdateData['tag_name'])
if StrictVersion(applatestversion) > StrictVersion(appversion):
Expand Down

0 comments on commit 84401a7

Please sign in to comment.