Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit e06ef80

Browse files
mvilanovaCopilot
andauthored
Update src/dispatch/plugins/dispatch_slack/case/interactive.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: Marc Vilanova <[email protected]>
1 parent 369d038 commit e06ef80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dispatch/plugins/dispatch_slack/case/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def engage(
473473
try:
474474
user = client.users_lookupByEmail(email=user_email)
475475
except SlackApiError as e:
476-
if e.response["error"] == SlackAPIErrorCode.USERS_NOT_FOUND:
476+
if e.response.get("error") == SlackAPIErrorCode.USERS_NOT_FOUND:
477477
log.warning(
478478
f"Failed to find Slack user for email {user_email}. "
479479
"User may have been deactivated or never had Slack access."

0 commit comments

Comments
 (0)