mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Remove exceptionhandler, this exception is handled in
cancel_with_response
This commit is contained in:
parent
1069cb3616
commit
0273539f06
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user