Skip to content

Commit

Permalink
Bugfix for AIO library
Browse files Browse the repository at this point in the history
Fix for #229. Thank you @ollipa for reporting this.
  • Loading branch information
TKIPisalegacycipher committed Oct 16, 2023
1 parent 7dd5f57 commit 9d724f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meraki/aio/rest_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,10 @@ async def _request(self, metadata, method, url, **kwargs):
else:
try:
message = await response.json(content_type = None)
message_is_dict = True
if isinstance(message, dict):
message_is_dict = True
else:
message_is_dict = False
except aiohttp.client_exceptions.ContentTypeError:
message_is_dict = False
try:
Expand Down

0 comments on commit 9d724f3

Please sign in to comment.