diff --git a/slack_sdk/socket_mode/aiohttp/__init__.py b/slack_sdk/socket_mode/aiohttp/__init__.py index ed379976..d6ccf12c 100644 --- a/slack_sdk/socket_mode/aiohttp/__init__.py +++ b/slack_sdk/socket_mode/aiohttp/__init__.py @@ -238,7 +238,7 @@ async def receive_messages(self) -> None: message_data = message.data if isinstance(message_data, bytes): message_data = message_data.decode("utf-8") - if len(message_data) > 0: + if message_data is not None and len(message_data) > 0: # To skip the empty message that Slack server-side often sends self.logger.debug( f"Received message "