mirror of
https://github.com/lnbits/lnbits.git
synced 2025-08-02 23:12:34 +02:00
fix invoice listener for LNbitsWallet.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user