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")