mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 05:33:47 +01:00
Fixed payment isn't initiated on lndrest
This commit is contained in:
parent
d1b89bc68a
commit
a61d74deff
@ -195,6 +195,8 @@ class LndRestWallet(Wallet):
|
||||
if "message" in line["error"]
|
||||
else line["error"]
|
||||
)
|
||||
if line["error"]["code"] == 5 and line["error"]["message"] == "payment isn't initiated":
|
||||
return PaymentStatus(False)
|
||||
return PaymentStatus(None)
|
||||
payment = line.get("result")
|
||||
if payment is not None and payment.get("status"):
|
||||
|
Loading…
Reference in New Issue
Block a user