Browse Source

payment_identifier: don't assume bip70_data exists in has_expired()

master
Sander van Grieken 2 years ago
parent
commit
6d37e464f3
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 2
      electrum/payment_identifier.py

2
electrum/payment_identifier.py

@ -662,7 +662,7 @@ class PaymentIdentifier(Logger):
return None
def has_expired(self):
if self.bip70:
if self.bip70 and self.bip70_data:
return self.bip70_data.has_expired()
elif self.bolt11:
return self.bolt11.has_expired()

Loading…
Cancel
Save