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 63ad4bd commit ec23051
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 @@ -289,7 +289,7 @@ def user_middleware(
if user_info["is_bot"]:
return context.ack()

email = user_info["profile"]["email"]
email = user_info.get("profile", {}).get("email")

if not email:
raise ContextError("Unable to get user email address.")
Expand Down

0 comments on commit ec23051

Please sign in to comment.