From 75bc5809a9b18bf1c1b97ce922046fe764be62f6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 22 Feb 2023 20:02:51 +0100 Subject: [PATCH] Better handle backtest errors --- freqtrade/rpc/api_server/api_backtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/rpc/api_server/api_backtest.py b/freqtrade/rpc/api_server/api_backtest.py index ce71467ca..77de33994 100644 --- a/freqtrade/rpc/api_server/api_backtest.py +++ b/freqtrade/rpc/api_server/api_backtest.py @@ -118,7 +118,7 @@ async def api_start_backtest( # noqa: C901 logger.info("Backtest finished.") - except (OperationalException, DependencyException) as e: + except (Exception, OperationalException, DependencyException) as e: logger.exception(f"Backtesting caused an error: {e}") pass finally: