diff --git a/engine/apps/slack/alert_group_slack_service.py b/engine/apps/slack/alert_group_slack_service.py index dfdd7018..9bb9510b 100644 --- a/engine/apps/slack/alert_group_slack_service.py +++ b/engine/apps/slack/alert_group_slack_service.py @@ -3,6 +3,7 @@ import typing from apps.slack.client import SlackClient from apps.slack.errors import ( + SlackAPICantUpdateMessageError, SlackAPIChannelArchivedError, SlackAPIChannelInactiveError, SlackAPIChannelNotFoundError, @@ -56,6 +57,7 @@ class AlertGroupSlackService: raise except ( SlackAPIMessageNotFoundError, + SlackAPICantUpdateMessageError, SlackAPIChannelInactiveError, SlackAPITokenError, SlackAPIChannelNotFoundError, diff --git a/engine/apps/slack/scenarios/resolution_note.py b/engine/apps/slack/scenarios/resolution_note.py index af291729..df45602f 100644 --- a/engine/apps/slack/scenarios/resolution_note.py +++ b/engine/apps/slack/scenarios/resolution_note.py @@ -9,6 +9,7 @@ from django.utils.text import Truncator from apps.api.permissions import RBACPermission from apps.slack.constants import BLOCK_SECTION_TEXT_MAX_SIZE, DIVIDER from apps.slack.errors import ( + SlackAPICantUpdateMessageError, SlackAPIChannelArchivedError, SlackAPIChannelInactiveError, SlackAPIChannelNotFoundError, @@ -43,6 +44,7 @@ logger.setLevel(logging.DEBUG) RESOLUTION_NOTE_EXCEPTIONS = ( SlackAPIChannelNotFoundError, SlackAPIMessageNotFoundError, + SlackAPICantUpdateMessageError, SlackAPIChannelArchivedError, SlackAPIInvalidAuthError, SlackAPITokenError,