Better handle backtest errors
This commit is contained in:
parent
2fed924a0d
commit
63e5d33028
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user