diff --git a/slack_sdk/socket_mode/aiohttp/__init__.py b/slack_sdk/socket_mode/aiohttp/__init__.py index a10aa402b..19ae7af0a 100644 --- a/slack_sdk/socket_mode/aiohttp/__init__.py +++ b/slack_sdk/socket_mode/aiohttp/__init__.py @@ -233,8 +233,8 @@ async def receive_messages(self) -> None: if self.logger.level <= logging.DEBUG: # The following logging prints every single received message # except empty message data ones. - type = WSMsgType(message.type) - message_type = type.name if type is not None else message.type + m_type = WSMsgType(message.type) + message_type = m_type.name if m_type is not None else message.type message_data = message.data if isinstance(message_data, bytes): message_data = message_data.decode("utf-8")