Fix json decoding

Fix minor tooltip issue
This commit is contained in:
Kevin Cathcart 2018-01-01 12:13:39 -05:00
parent d36b6b1beb
commit 23ea19017f
2 changed files with 2 additions and 1 deletions

2
Gui.py
View File

@ -457,7 +457,7 @@ class SpriteSelector(object):
try:
task.update_status("Downloading official sprites list")
with urlopen('http://vt.alttp.run/sprites') as response:
sprites_arr = json.load(response)
sprites_arr = json.loads(response.read().decode("utf-8"))
except Exception as e:
resultmessage = "Error getting list of official sprites. Sprites not updated.\n\n%s: %s" % (type(e).__name__, e)
successful = False

View File

@ -109,6 +109,7 @@ class ToolTips(object):
window = None
active = 0
tag = None
after_id = None
@classmethod
def getcontroller(cls, widget):