Browse Source

kivy ln invoice: handle missing 'd' tag

fixes https://github.com/spesmilo/electrum/issues/6262
patch-4
SomberNight 3 years ago
parent
commit
88121d7924
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/kivy/uix/screens.py

2
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

Loading…
Cancel
Save