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:
Matthias
2025-03-06 06:34:10 +01:00
parent 6636a2fda8
commit ee4f05a5b8

View File

@@ -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