mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 20:35:13 +00:00
catch http exception
This commit is contained in:
parent
3d3ec2e7b0
commit
4e3c9de1d0
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue