Browse Source

catch http exception

master
ecdsa 13 years ago
parent
commit
4e3c9de1d0
  1. 3
      gui/exchange_rate.py

3
gui/exchange_rate.py

@ -36,7 +36,10 @@ class Exchanger(threading.Thread):
response = connection.getresponse() response = connection.getresponse()
if response.reason == httplib.responses[httplib.NOT_FOUND]: if response.reason == httplib.responses[httplib.NOT_FOUND]:
return return
try:
response = json.loads(response.read()) response = json.loads(response.read())
except:
return
quote_currencies = {} quote_currencies = {}
try: try:
for r in response: for r in response:

Loading…
Cancel
Save