From ec230513ae19e8cd466662379b1f68c0a420060a Mon Sep 17 00:00:00 2001 From: Avery Date: Wed, 26 Jun 2024 12:53:51 -0700 Subject: [PATCH] Update src/dispatch/plugins/dispatch_slack/middleware.py Co-authored-by: Jason Schroth --- src/dispatch/plugins/dispatch_slack/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_slack/middleware.py b/src/dispatch/plugins/dispatch_slack/middleware.py index 88d20e47a35d..c10890a54de0 100644 --- a/src/dispatch/plugins/dispatch_slack/middleware.py +++ b/src/dispatch/plugins/dispatch_slack/middleware.py @@ -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.")