Skip to content

Commit f213a74

Browse files
authored
fix(slack): Fix error handling when fetching slack channel information (#74267)
1 parent d8d8520 commit f213a74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sentry/integrations/slack/utils/channel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def validate_channel_id(name: str, integration_id: int | None, input_channel_id:
111111
"input_channel_id": input_channel_id,
112112
},
113113
)
114+
raise ValidationError("Could not retrieve Slack channel information.") from e
114115

115116
if not isinstance(results, dict):
116117
raise IntegrationError("Bad slack channel list response.")

0 commit comments

Comments
 (0)