Remove exceptionhandler, this exception is handled in

cancel_with_response
This commit is contained in:
Matthias 2020-04-17 19:55:53 +02:00
parent 1069cb3616
commit 0273539f06

View File

@ -890,13 +890,8 @@ class FreqtradeBot:
"""
if order['status'] != 'canceled':
reason = "cancelled due to timeout"
try:
corder = self.exchange.cancel_order_with_result(trade.open_order_id, trade.pair,
trade.amount)
except InvalidOrderException:
corder = {}
logger.exception(
f"Could not cancel buy order {trade.open_order_id} for pair {trade.pair}")
else:
# Order was cancelled already, so we can reuse the existing dict
corder = order