We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9b0117 commit 1ded1f4Copy full SHA for 1ded1f4
slack_bolt/context/get_thread_context/get_thread_context.py
@@ -32,7 +32,7 @@ def __call__(self) -> Optional[AssistantThreadContext]:
32
return self._thread_context
33
34
thread = self.payload.get("assistant_thread")
35
- if thread is not None and thread.get("context", {}).get("channel_id") is not None:
+ if isinstance(thread, dict) and thread.get("context", {}).get("channel_id") is not None:
36
# assistant_thread_started
37
self._thread_context = AssistantThreadContext(thread["context"])
38
# for this event, the context will never be changed
0 commit comments