Bump pre-commit mypy

This commit is contained in:
Matthias
2023-08-14 07:51:25 +02:00
parent 08bc615826
commit d53b6871ea
2 changed files with 2 additions and 2 deletions

View File

@@ -1140,7 +1140,7 @@ class Backtesting:
# 5. Process exit orders.
order = trade.select_order(trade.exit_side, is_open=True)
if self._try_close_open_order(order, trade, current_time, row):
if order and self._try_close_open_order(order, trade, current_time, row):
sub_trade = order.safe_amount_after_fee != trade.amount
if sub_trade:
trade.recalc_trade_from_orders()