fix invoice listener for LNbitsWallet.
This commit is contained in:
parent
cbeb888761
commit
42b3359d12
1 changed files with 2 additions and 2 deletions
|
|
@ -125,7 +125,7 @@ class LNbitsWallet(Wallet):
|
|||
except json.decoder.JSONDecodeError:
|
||||
continue
|
||||
|
||||
if type(data) is not list or len(data) < 9:
|
||||
if type(data) is not dict:
|
||||
continue
|
||||
|
||||
yield data[8] # payment_hash
|
||||
yield data["payment_hash"] # payment_hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue