Skip to content

Commit 9e20299

Browse files
committed
Add error logs
1 parent 3b4ae8c commit 9e20299

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

llmstack/apps/handlers/slack_app.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,16 @@ def _get_input_data(self):
153153

154154
def _get_slack_processor_actor_configs(self, input_data):
155155
output_template = convert_template_vars_from_legacy_format(
156-
self.app_data["output_template"].get(
157-
"markdown",
158-
"",
159-
)
160-
if self.app_data and "output_template" in self.app_data
161-
else self.app.output_template.get(
162-
"markdown",
163-
"",
156+
(
157+
self.app_data["output_template"].get(
158+
"markdown",
159+
"",
160+
)
161+
if self.app_data and "output_template" in self.app_data
162+
else self.app.output_template.get(
163+
"markdown",
164+
"",
165+
)
164166
),
165167
)
166168
vendor_env = self.app_owner_profile.get_vendor_env()
@@ -225,7 +227,7 @@ def _is_app_accessible(self):
225227
# Only allow direct messages from users and not from bots
226228
if channel_type == "im" and "subtype" not in event_data and "bot_id" not in event_data:
227229
return True
228-
raise Exception("Invalid Slack request")
230+
raise Exception(f"Invalid Slack request type: {event_type}, channel_type: {channel_type}")
229231

230232
return super()._is_app_accessible()
231233

0 commit comments

Comments
 (0)