mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
parent
bd98ff6332
commit
ceb50a7807
|
@ -214,10 +214,9 @@ def _download_pair_history(datadir: Path,
|
||||||
data_handler.ohlcv_store(pair, timeframe, data=data)
|
data_handler.ohlcv_store(pair, timeframe, data=data)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.error(
|
logger.exception(
|
||||||
f'Failed to download history data for pair: "{pair}", timeframe: {timeframe}. '
|
f'Failed to download history data for pair: "{pair}", timeframe: {timeframe}.'
|
||||||
f'Error: {e}'
|
|
||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -304,10 +303,9 @@ def _download_trades_history(exchange: Exchange,
|
||||||
logger.info(f"New Amount of trades: {len(trades)}")
|
logger.info(f"New Amount of trades: {len(trades)}")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.error(
|
logger.exception(
|
||||||
f'Failed to download historic trades for pair: "{pair}". '
|
f'Failed to download historic trades for pair: "{pair}". '
|
||||||
f'Error: {e}'
|
|
||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
@ -312,10 +312,7 @@ def test_download_backtesting_data_exception(ohlcv_history, mocker, caplog,
|
||||||
# clean files freshly downloaded
|
# clean files freshly downloaded
|
||||||
_clean_test_file(file1_1)
|
_clean_test_file(file1_1)
|
||||||
_clean_test_file(file1_5)
|
_clean_test_file(file1_5)
|
||||||
assert log_has(
|
assert log_has('Failed to download history data for pair: "MEME/BTC", timeframe: 1m.', caplog)
|
||||||
'Failed to download history data for pair: "MEME/BTC", timeframe: 1m. '
|
|
||||||
'Error: File Error', caplog
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def test_load_partial_missing(testdatadir, caplog) -> None:
|
def test_load_partial_missing(testdatadir, caplog) -> None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user