Make mypy happy and handle hypothetical case when stake_amount == 0
This commit is contained in:
parent
3dbd83e35a
commit
d6ca562b03
@ -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} ...")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user