commit 64b2844e81a7a2ec3f0393e8a28d4a8fc6c6a974
parent f618bb4a6738a31c9b451bdc3bffbc878001b0d1
Author: SomberNight <somber.night@protonmail.com>
Date: Wed, 20 Feb 2019 18:54:25 +0100
qt request_list: fix changing between items
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/electrum/gui/qt/request_list.py b/electrum/gui/qt/request_list.py
@@ -94,10 +94,12 @@ class RequestList(MyTreeView):
return
req = self.parent.get_request_URI(key)
elif request_type == REQUEST_TYPE_LN:
- preimage, req, is_received, pay_timestamp = self.wallet.lnworker.invoices.get(key, (None, None, None))
+ req, is_received = self.wallet.lnworker.invoices.get(key) or (None, None)
if req is None:
self.update()
return
+ else:
+ raise Exception(f"unknown request type: {request_type}")
self.parent.receive_address_e.setText(req)
def update(self):