Catching bitfinex Error: No JSON object could be decoded

This commit is contained in:
Victor Grau Serrat
2017-09-28 09:14:22 -06:00
parent 9dfefec13c
commit 15fa98420d
+4 -1
View File
@@ -539,7 +539,10 @@ class Bitfinex(Exchange):
response.content)
)
tickers = response.json()
try:
tickers = response.json()
except Exception as e:
raise ExchangeRequestError(error=e)
ticks = dict()
for index, ticker in enumerate(tickers):