diff --git a/gui/exchange_rate.py b/gui/exchange_rate.py index c9cd7a79..cbfa9ca7 100644 --- a/gui/exchange_rate.py +++ b/gui/exchange_rate.py @@ -36,7 +36,10 @@ class Exchanger(threading.Thread): response = connection.getresponse() if response.reason == httplib.responses[httplib.NOT_FOUND]: return - response = json.loads(response.read()) + try: + response = json.loads(response.read()) + except: + return quote_currencies = {} try: for r in response: