Merge pull request #1630 from lnbits/update/flake8

FEAT: improve on flake8 linting
This commit is contained in:
Arc
2023-04-20 09:49:11 +01:00
committed by GitHub
11 changed files with 41 additions and 47 deletions
+2 -2
View File
@@ -187,9 +187,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"]