catch http exception
This commit is contained in:
@@ -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
|
||||||
response = json.loads(response.read())
|
try:
|
||||||
|
response = json.loads(response.read())
|
||||||
|
except:
|
||||||
|
return
|
||||||
quote_currencies = {}
|
quote_currencies = {}
|
||||||
try:
|
try:
|
||||||
for r in response:
|
for r in response:
|
||||||
|
|||||||
Reference in New Issue
Block a user