Merge pull request #11027 from xzmeng/fix-cond

fix: invert API download condition from `and` to `or`
This commit is contained in:
Matthias
2024-12-02 18:22:58 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -136,7 +136,7 @@ class Binance(Exchange):
if (
self._config["exchange"].get("only_from_ccxt", False)
and
or
# only download timeframes with significant improvements,
# otherwise fall back to rest API
not (

View File

@@ -89,7 +89,7 @@ async def download_archive_ohlcv(
)
except Exception as e:
logger.warning(
"An exception occurred during fast download from Binance, falling back to"
"An exception occurred during fast download from Binance, falling back to "
"the slower REST API, this can take more time.",
exc_info=e,
)