Check equality with None instead of truthfulness

master
Mark Veidemanis 1 year ago
parent 27de8090de
commit f4ae8fbc5f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -311,9 +311,9 @@ def execute_strategy(callback, strategy, func):
# Get the precision for the symbol
trade_precision, display_precision = get_precision(account, symbol)
if not trade_precision or not display_precision:
if trade_precision is None or display_precision is None:
# sendmsg(user, f"Precision not found for {symbol}", title="Error")
# log.error(f"Precision not found for {symbol}")
log.error(f"Market precision not found for {symbol} from {account}")
return
# Round the received price to the display precision

Loading…
Cancel
Save