This commit is contained in:
jblestang 2017-12-31 15:16:22 +00:00 committed by GitHub
commit bfad78fe95

View File

@ -92,8 +92,8 @@ def _process(nb_assets: Optional[int] = 0) -> bool:
if trade.is_open and trade.open_order_id is None: if trade.is_open and trade.open_order_id is None:
# Check if we can sell our current pair # Check if we can sell our current pair
state_changed = handle_trade(trade) or state_changed state_changed = handle_trade(trade) or state_changed
Trade.session.flush()
Trade.session.flush()
except (requests.exceptions.RequestException, json.JSONDecodeError) as error: except (requests.exceptions.RequestException, json.JSONDecodeError) as error:
logger.warning( logger.warning(
'Got %s in _process(), retrying in 30 seconds...', 'Got %s in _process(), retrying in 30 seconds...',