This commit is contained in:
dni ⚡
2023-04-17 08:21:45 +02:00
parent 1ac9d2572d
commit 0af22a6256
4 changed files with 11 additions and 13 deletions
+2 -2
View File
@@ -173,9 +173,9 @@ class LndRestWallet(Wallet):
timeout=None, headers=self.auth, verify=self.cert
) as client:
async with client.stream("GET", url) as r:
async for l in r.aiter_lines():
async for json_line in r.aiter_lines():
try:
line = json.loads(l)
line = json.loads(json_line)
if line.get("error"):
logger.error(
line["error"]["message"]