Skip to content

Commit

Permalink
Update src/dispatch/plugins/dispatch_slack/middleware.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Schroth <[email protected]>
  • Loading branch information
metroid-samus and jschroth authored Jun 26, 2024
1 parent ec23051 commit 46c2546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/plugins/dispatch_slack/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def user_middleware(
else:
user_info = client.users_info(user=user_id).get("user", {})

if user_info["is_bot"]:
if user_info.get("is_bot", False):
return context.ack()

email = user_info.get("profile", {}).get("email")
Expand Down

0 comments on commit 46c2546

Please sign in to comment.