Skip to content

Commit

Permalink
Fix slackapi#1458 internal error within aiohttp-based socket mode client
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Feb 13, 2024
1 parent 7e71b73 commit 709c3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slack_sdk/socket_mode/aiohttp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 709c3d7

Please sign in to comment.