From 88121d79249c80b40a033ce399837644c1a59a6e Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 18 Feb 2022 16:37:46 +0100 Subject: [PATCH] kivy ln invoice: handle missing 'd' tag fixes https://github.com/spesmilo/electrum/issues/6262 --- electrum/gui/kivy/uix/screens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/kivy/uix/screens.py b/electrum/gui/kivy/uix/screens.py index cf6c99e22..a3571c143 100644 --- a/electrum/gui/kivy/uix/screens.py +++ b/electrum/gui/kivy/uix/screens.py @@ -201,7 +201,7 @@ class SendScreen(CScreen, Logger): self.app.show_info(_("Invoice is not a valid Lightning invoice: ") + repr(e)) # repr because str(Exception()) == '' return self.address = invoice - self.message = dict(lnaddr.tags).get('d', None) + self.message = lnaddr.get_description() self.amount = self.app.format_amount_and_units(lnaddr.amount * bitcoin.COIN) if lnaddr.amount else '' self.payment_request = None self.is_lightning = True