Skip to content

Commit

Permalink
🔍 nit(slo): make slack message_limit_exceeded a halt (#84876)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamrajjoshi authored Feb 10, 2025
1 parent fe8140e commit 53736cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sentry/integrations/slack/utils/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class SlackSdkErrorCategory:
MODAL_NOT_FOUND := SlackSdkErrorCategory("not_found"),
RATE_LIMITED := SlackSdkErrorCategory("ratelimited"),
RESTRICTED_ACTION := SlackSdkErrorCategory("restricted_action"),
MESSAGE_LIMIT_EXCEEDED := SlackSdkErrorCategory("message_limit_exceeded"),
)

"""
Expand All @@ -30,6 +31,7 @@ class SlackSdkErrorCategory:
CHANNEL_ARCHIVED,
RATE_LIMITED,
RESTRICTED_ACTION,
MESSAGE_LIMIT_EXCEEDED,
)

_CATEGORIES_BY_MESSAGE = {c.message: c for c in SLACK_SDK_ERROR_CATEGORIES}
Expand Down

0 comments on commit 53736cc

Please sign in to comment.