From 42b3359d1283941d4c44e1e9cb5037d96e6618c0 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 18 Apr 2021 00:05:45 -0300 Subject: [PATCH] fix invoice listener for LNbitsWallet. --- lnbits/wallets/lnbits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/wallets/lnbits.py b/lnbits/wallets/lnbits.py index 786a4b030..5ac3e2459 100644 --- a/lnbits/wallets/lnbits.py +++ b/lnbits/wallets/lnbits.py @@ -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