fix invoice listener for LNbitsWallet.

This commit is contained in:
fiatjaf
2021-04-18 00:05:45 -03:00
parent cbeb888761
commit 42b3359d12

View File

@@ -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