Merge pull request #3944 from freqtrade/fix_aioexception

Catch asyncio.TimeoutError when reloading async markets
This commit is contained in:
Matthias 2020-11-13 16:04:14 +01:00 committed by GitHub
commit c09b641860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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