URI: 
       tfix #5681 - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit b08cfac643bf6e6c3fdd54b6f35787e3876e068c
   DIR parent a51a2a7f8f822a63b5f04a26229bc12cbd937343
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Mon,  7 Oct 2019 17:24:49 +0200
       
       fix #5681
       
       Diffstat:
         M electrum/wallet.py                  |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum/wallet.py b/electrum/wallet.py
       t@@ -1358,14 +1358,15 @@ class Abstract_Wallet(AddressSynchronizer):
                if not req:
                    return
                req = copy.copy(req)
       -        if req['type'] == PR_TYPE_ONCHAIN:
       +        _type = req.get('type')
       +        if _type == PR_TYPE_ONCHAIN:
                    addr = req['address']
                    req['URI'] = self.get_request_URI(addr)
                    status, conf = self.get_request_status(addr)
                    req['status'] = status
                    if conf is not None:
                        req['confirmations'] = conf
       -        elif self.lnworker and req['type'] == PR_TYPE_LN:
       +        elif self.lnworker and _type == PR_TYPE_LN:
                    req['status'] = self.lnworker.get_invoice_status(bfh(key))
                else:
                    return