diff --git a/src/dispatch/plugins/dispatch_slack/service.py b/src/dispatch/plugins/dispatch_slack/service.py index 2eaa644d8b5d..1f1877b9561f 100644 --- a/src/dispatch/plugins/dispatch_slack/service.py +++ b/src/dispatch/plugins/dispatch_slack/service.py @@ -71,9 +71,9 @@ def emails_to_user_ids(client: WebClient, participants: list[str]) -> list[str]: if e.response["error"] == SlackAPIErrorCode.USERS_NOT_FOUND: log.warning(msg) continue - - log.exception(msg) - continue + else: + log.exception(msg) + continue else: user_ids.append(user_id)