mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-13 03:33:55 +00:00
fix flake8 warning
This commit is contained in:
parent
61b2373dd1
commit
10e12ec1b9
|
@ -453,8 +453,10 @@ class FreqtradeBot(object):
|
||||||
|
|
||||||
for trade in Trade.query.filter(Trade.open_order_id.isnot(None)).all():
|
for trade in Trade.query.filter(Trade.open_order_id.isnot(None)).all():
|
||||||
try:
|
try:
|
||||||
# FIXME: Somehow the query above returns results where the open_order_id is in fact None.
|
# FIXME: Somehow the query above returns results
|
||||||
# This is probably because the record got updated via /forcesell in a different thread.
|
# 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:
|
if not trade.open_order_id:
|
||||||
continue
|
continue
|
||||||
order = exchange.get_order(trade.open_order_id, trade.pair)
|
order = exchange.get_order(trade.open_order_id, trade.pair)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user