Skip to content

Commit 6d37e46

Browse files
committed
payment_identifier: don't assume bip70_data exists in has_expired()
1 parent 79f9b49 commit 6d37e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electrum/payment_identifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ async def resolve_openalias(self, key: str) -> Optional[dict]:
662662
return None
663663

664664
def has_expired(self):
665-
if self.bip70:
665+
if self.bip70 and self.bip70_data:
666666
return self.bip70_data.has_expired()
667667
elif self.bolt11:
668668
return self.bolt11.has_expired()

0 commit comments

Comments
 (0)