From 23ea19017f2530bf6a1dc93f47f22ab39e53fd0f Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Mon, 1 Jan 2018 12:13:39 -0500 Subject: [PATCH] Fix json decoding Fix minor tooltip issue --- Gui.py | 2 +- GuiUtils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gui.py b/Gui.py index e197100d..5e86546d 100644 --- a/Gui.py +++ b/Gui.py @@ -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 diff --git a/GuiUtils.py b/GuiUtils.py index 78e5121f..e9361632 100644 --- a/GuiUtils.py +++ b/GuiUtils.py @@ -109,6 +109,7 @@ class ToolTips(object): window = None active = 0 tag = None + after_id = None @classmethod def getcontroller(cls, widget):