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