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
1 changed files with 2 additions and 7 deletions

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}")
corder = self.exchange.cancel_order_with_result(trade.open_order_id, trade.pair,
trade.amount)
else:
# Order was cancelled already, so we can reuse the existing dict
corder = order