fix flake8

This commit is contained in:
xmatthias
2018-05-31 22:17:46 +02:00
parent 633620a5e9
commit e28973c50a
2 changed files with 4 additions and 2 deletions

View File

@@ -195,7 +195,8 @@ class Analyze(object):
:return True if bot should sell at current rate
"""
current_profit = trade.calc_profit_percent(current_rate)
if self.strategy.stoploss is not None and current_profit < self.strategy.stoploss: # type: ignore
if self.strategy.stoploss is not None \
and current_profit < self.strategy.stoploss: # type: ignore
logger.debug('Stop loss hit.')
return True