mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
fix: have download-data hard-fail if it times out
this will avoid holes in data if individual requests fail. The tradeoff is that the download will stop for this pair/timeframe combination.
This commit is contained in:
@@ -2351,6 +2351,7 @@ class Exchange:
|
||||
since_ms=since_ms,
|
||||
until_ms=until_ms,
|
||||
candle_type=candle_type,
|
||||
raise_=True,
|
||||
)
|
||||
)
|
||||
logger.debug(f"Downloaded data for {pair} from ccxt with length {len(data)}.")
|
||||
@@ -2391,7 +2392,7 @@ class Exchange:
|
||||
if isinstance(res, BaseException):
|
||||
logger.warning(f"Async code raised an exception: {repr(res)}")
|
||||
if raise_:
|
||||
raise
|
||||
raise res
|
||||
continue
|
||||
else:
|
||||
# Deconstruct tuple if it's not an exception
|
||||
|
||||
Reference in New Issue
Block a user