fix testcase

This commit is contained in:
kevinjulian
2021-07-04 21:59:59 +07:00
parent f6511c3e3f
commit 2d5ced7801
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ class AgeFilter(IPairList):
f"({exchange.ohlcv_candle_limit('1d')})")
if self._max_days_listed and self._max_days_listed <= self._min_days_listed:
raise OperationalException("AgeFilter max_days_listed <= min_days_listed not permitted")
if self._max_days_listed > exchange.ohlcv_candle_limit('1d'):
if self._max_days_listed and self._max_days_listed > exchange.ohlcv_candle_limit('1d'):
raise OperationalException("AgeFilter requires max_days_listed to not exceed "
"exchange max request size "
f"({exchange.ohlcv_candle_limit('1d')})")