aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_message.py
diff options
context:
space:
mode:
Diffstat (limited to 'slack/slack_message.py')
-rw-r--r--slack/slack_message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py
index 18d3d3a..9674a4e 100644
--- a/slack/slack_message.py
+++ b/slack/slack_message.py
@@ -652,7 +652,7 @@ class SlackMessage:
and self._message_json["subtype"] == "huddle_thread"
):
room = self._message_json["room"]
- team = self._message_json["team"]
+ team = self._message_json.get("team", self.workspace.id)
huddle_text = "Huddle started" if not room["has_ended"] else "Huddle ended"
name_text = f", name: {room['name']}" if room["name"] else ""