Make mypy happy and handle hypothetical case when stake_amount == 0

This commit is contained in:
hroff-1902 2019-12-28 04:05:03 +03:00
parent 3dbd83e35a
commit d6ca562b03

View File

@ -335,6 +335,10 @@ class FreqtradeBot:
continue
stake_amount = self.get_trade_stake_amount(pair)
if not stake_amount:
logger.warning("Stake amount is 0, ignoring trade")
continue
logger.info(f"Buy signal found: about create a new trade with stake_amount: "
f"{stake_amount} ...")