Skip to content

Commit

Permalink
Use else statement in except clause
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Mar 6, 2024
1 parent e8cc209 commit f87082c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dispatch/plugins/dispatch_slack/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f87082c

Please sign in to comment.