chore: improve log on adjust_entry_price cancels

This commit is contained in:
Matthias
2025-01-09 20:04:57 +01:00
parent e5d508a507
commit 711e680198
2 changed files with 2 additions and 2 deletions

View File

@@ -1695,7 +1695,7 @@ class FreqtradeBot(LoggingMixin):
)
if not res:
self.replace_order_failed(
trade, f"Could not cancel order for {trade}, therefore not replacing."
trade, f"Could not fully cancel order for {trade}, therefore not replacing."
)
return
if adjusted_entry_price:

View File

@@ -2053,7 +2053,7 @@ def test_adjust_entry_replace_fail(
assert len(trades) == 0
assert len(Order.session.scalars(select(Order)).all()) == 0
assert fetch_order_mock.call_count == 4
assert log_has_re(r"Could not cancel order.*, therefore not replacing\.", caplog)
assert log_has_re(r"Could not fully cancel order.*, therefore not replacing\.", caplog)
# Entry adjustment is called
assert freqtrade.strategy.adjust_entry_price.call_count == 1