Skip to content

Commit

Permalink
Report error from opening view
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Sep 24, 2024
1 parent f80b911 commit e4e31fe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/templatebot/services/slackblockactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ async def handle_project_template_selection(
title=SlackPlainTextObject(text="Set up your project"),
blocks=[demo_block, demo_input_block],
)
await self._slack_client.open_view(
response = await self._slack_client.open_view(
trigger_id=payload.trigger_id, view=modal
)
if not response["ok"]:
self._logger.error(
"Failed to open view",
response=response,
payload=payload.model_dump(mode="json"),
)

0 comments on commit e4e31fe

Please sign in to comment.