diff --git a/meraki/aio/rest_session.py b/meraki/aio/rest_session.py index 84f1ed28..c597b5b1 100644 --- a/meraki/aio/rest_session.py +++ b/meraki/aio/rest_session.py @@ -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: