fix flake8 warning

This commit is contained in:
gcarq 2018-06-08 02:37:12 +02:00
parent 61b2373dd1
commit 10e12ec1b9

View File

@ -453,8 +453,10 @@ class FreqtradeBot(object):
for trade in Trade.query.filter(Trade.open_order_id.isnot(None)).all():
try:
# FIXME: Somehow the query above returns results where the open_order_id is in fact None.
# This is probably because the record got updated via /forcesell in a different thread.
# FIXME: Somehow the query above returns results
# where the open_order_id is in fact None.
# This is probably because the record got
# updated via /forcesell in a different thread.
if not trade.open_order_id:
continue
order = exchange.get_order(trade.open_order_id, trade.pair)