We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35616d8 commit 2e169b0Copy full SHA for 2e169b0
1 file changed
dingz/__init__.py
@@ -51,6 +51,7 @@ async def _request(
51
if content_type == "application/json":
52
raise DingzError(response.status, json.loads(contents.decode("utf8")))
53
raise DingzError(response.status, {"message": contents.decode("utf8")})
54
+
55
if "application/json" in content_type:
56
response_json = await response.json()
57
return response_json
0 commit comments