Catch asyncio.TimeoutError when reloading async markets

This commit is contained in:
Matthias 2020-11-13 10:43:48 +01:00
parent 4eb96cfc4f
commit 08b52926c8
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class Exchange:
asyncio.get_event_loop().run_until_complete(
self._api_async.load_markets(reload=reload))
except ccxt.BaseError as e:
except (asyncio.TimeoutError, ccxt.BaseError) as e:
logger.warning('Could not load async markets. Reason: %s', e)
return