mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-21 22:57:05 +02:00
formatted code
This commit is contained in:
committed by
Pavol Rusnak
parent
1195dd3eb3
commit
31782040c6
@@ -195,7 +195,11 @@ class LndRestWallet(Wallet):
|
|||||||
if "message" in line["error"]
|
if "message" in line["error"]
|
||||||
else line["error"]
|
else line["error"]
|
||||||
)
|
)
|
||||||
if line["error"].get("code") == 5 and line["error"].get("message") == "payment isn't initiated":
|
if (
|
||||||
|
line["error"].get("code") == 5
|
||||||
|
and line["error"].get("message")
|
||||||
|
== "payment isn't initiated"
|
||||||
|
):
|
||||||
return PaymentStatus(False)
|
return PaymentStatus(False)
|
||||||
return PaymentStatus(None)
|
return PaymentStatus(None)
|
||||||
payment = line.get("result")
|
payment = line.get("result")
|
||||||
|
Reference in New Issue
Block a user