catch DependencyExceptions while selling
This commit is contained in:
parent
bc2bd7fe1e
commit
4c49229b77
@ -358,6 +358,7 @@ class FreqtradeBot(object):
|
||||
Tries to execute a sell trade
|
||||
:return: True if executed
|
||||
"""
|
||||
try:
|
||||
# Get order details for actual price per unit
|
||||
if trade.open_order_id:
|
||||
# Update trade with order values
|
||||
@ -367,6 +368,8 @@ class FreqtradeBot(object):
|
||||
if trade.is_open and trade.open_order_id is None:
|
||||
# Check if we can sell our current pair
|
||||
return self.handle_trade(trade)
|
||||
except DependencyException as exception:
|
||||
logger.warning('Unable to sell trade: %s', exception)
|
||||
return False
|
||||
|
||||
def handle_trade(self, trade: Trade) -> bool:
|
||||
|
Loading…
Reference in New Issue
Block a user