mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-14 11:15:09 +08:00
Catching bitfinex Error: No JSON object could be decoded
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user