commit e5ff4fc7cd668f2422401291c886aa8b7fc5bc0d
parent 5e92f637a65e35b26ff49c5afc94e71aa3962a15
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 6 Sep 2019 13:43:00 +0200
fix #5605
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py
@@ -1325,8 +1325,10 @@ class Abstract_Wallet(AddressSynchronizer):
config = get_config()
if key in self.receive_requests:
req = self.get_payment_request(key)
- else:
+ elif self.lnworker:
req = self.lnworker.get_request(key)
+ else:
+ req = None
if not req:
return
if config.get('payserver_port'):