Fix according to suggestion from prusnak
Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
This commit is contained in:
parent
a61d74deff
commit
1195dd3eb3
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class LndRestWallet(Wallet):
|
|||
if "message" in line["error"]
|
||||
else line["error"]
|
||||
)
|
||||
if line["error"]["code"] == 5 and line["error"]["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(None)
|
||||
payment = line.get("result")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue