From 004aed05d2225bac2b674a7604574ff4a25972fc Mon Sep 17 00:00:00 2001 From: Ian Date: Fri, 1 Dec 2023 13:15:33 -0700 Subject: [PATCH] Switch type to m_type --- slack_sdk/socket_mode/aiohttp/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")