1
0

kivy ln invoice: handle missing 'd' tag

fixes https://github.com/spesmilo/electrum/issues/6262
This commit is contained in:
SomberNight
2022-02-18 16:37:46 +01:00
parent 75af5b1542
commit 88121d7924

View File

@@ -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