mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-30 17:13:06 +00:00
fix: check if days is None before conversion
This commit is contained in:
@@ -604,7 +604,7 @@ def download_data(
|
||||
Download data function. Used from both cli and API.
|
||||
"""
|
||||
timerange = TimeRange()
|
||||
if "days" in config:
|
||||
if "days" in config and config["days"] is not None:
|
||||
time_since = (datetime.now() - timedelta(days=config["days"])).strftime("%Y%m%d")
|
||||
timerange = TimeRange.parse_timerange(f"{time_since}-")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user