From e4e31fe4a8746a4a953c76289535db07ba96d406 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Tue, 24 Sep 2024 18:11:16 -0400 Subject: [PATCH] Report error from opening view --- src/templatebot/services/slackblockactions.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/templatebot/services/slackblockactions.py b/src/templatebot/services/slackblockactions.py index f48b2c9..0b156f4 100644 --- a/src/templatebot/services/slackblockactions.py +++ b/src/templatebot/services/slackblockactions.py @@ -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"), + )