Better handle backtest errors

This commit is contained in:
Matthias 2023-02-22 20:02:51 +01:00
parent 2fed924a0d
commit 63e5d33028

View File

@ -118,7 +118,7 @@ async def api_start_backtest( # noqa: C901
logger.info("Backtest finished.") logger.info("Backtest finished.")
except (OperationalException, DependencyException) as e: except (Exception, OperationalException, DependencyException) as e:
logger.exception(f"Backtesting caused an error: {e}") logger.exception(f"Backtesting caused an error: {e}")
pass pass
finally: finally: