Better handle backtest errors

This commit is contained in:
Matthias 2023-02-22 20:02:51 +01:00
parent 0f878daa98
commit 75bc5809a9

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: