Integrate httpx exceptions

This commit is contained in:
taizan-hokouto
2020-10-26 23:39:33 +09:00
parent 90596be880
commit 499cf26fa8
4 changed files with 5 additions and 7 deletions

View File

@@ -249,7 +249,7 @@ class LiveChatAsync:
resp = await client.get(url, headers=headers)
livechat_json = resp.json()
break
except (httpx.HTTPError, json.JSONDecodeError):
except (json.JSONDecodeError, httpx.HTTPError):
await asyncio.sleep(1)
continue
else: