evade lnurl encoding error for withdraw_full QR on localhost.

This commit is contained in:
fiatjaf
2021-04-21 23:27:57 -03:00
parent 2aa4a93da1
commit b55cc82f1c
2 changed files with 9 additions and 6 deletions
+4 -1
View File
@@ -52,7 +52,10 @@ class Wallet(NamedTuple):
wal=self.id,
_external=True,
)
return lnurl_encode(url)
try:
return lnurl_encode(url)
except:
return ""
def lnurlauth_key(self, domain: str) -> SigningKey:
hashing_key = hashlib.sha256(self.id.encode("utf-8")).digest()