Skip to content

Commit 18f73af

Browse files
committed
use get to return None on trade with no liq price
1 parent 2f392b4 commit 18f73af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/rpc/telegram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ async def _status_msg(self, update: Update, context: CallbackContext) -> None:
837837
# Adding liquidation only if it is not None
838838
lines.append(
839839
f"*Liquidation:* `{round_value(r['liquidation_price'], 8)}`"
840-
if r["liquidation_price"]
840+
if r.get("liquidation_price")
841841
else ""
842842
)
843843
# Adding stoploss and stoploss percentage only if it is not None

0 commit comments

Comments
 (0)