diff --git a/lib/bot.py b/lib/bot.py index d76eaca..59db50b 100644 --- a/lib/bot.py +++ b/lib/bot.py @@ -2312,6 +2312,8 @@ def get_price_log( try: response: requests.Response = session.get(query, timeout=30) status: int = response.status_code + if status == 404: + return (False, []) if status != 200: response.raise_for_status() else: diff --git a/utils/prove-backtesting.py b/utils/prove-backtesting.py index 8478aa3..47c1dfa 100644 --- a/utils/prove-backtesting.py +++ b/utils/prove-backtesting.py @@ -331,7 +331,7 @@ def write_optimized_strategy_config( log_msg(f" wallet: {old_wallet}") - z: Dict[str, Any] = x | _tickers + z: Dict[str, Any] = _tickers | x _tickers = z log_msg(f" tickers: {_tickers}")