We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86169db commit 8257c27Copy full SHA for 8257c27
slack_sdk/socket_mode/aiohttp/__init__.py
@@ -241,7 +241,7 @@ async def receive_messages(self) -> None:
241
message_data = message.data
242
if isinstance(message_data, bytes):
243
message_data = message_data.decode("utf-8")
244
- if message_data is not None and len(message_data) > 0:
+ if message_data is not None and isinstance(message_data, (str, bytes)) and len(message_data) > 0:
245
# To skip the empty message that Slack server-side often sends
246
self.logger.debug(
247
f"Received message "
0 commit comments