From 46c2546856f99db6103040a87a63ef98b52752d5 Mon Sep 17 00:00:00 2001 From: Avery Date: Wed, 26 Jun 2024 12:54:46 -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 c10890a54de0..743485803d98 100644 --- a/src/dispatch/plugins/dispatch_slack/middleware.py +++ b/src/dispatch/plugins/dispatch_slack/middleware.py @@ -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")