From 2d1c9548e2e973c8662f5079f1070829120d77cb Mon Sep 17 00:00:00 2001 From: Bruno Date: Fri, 13 Sep 2024 17:44:48 -0300 Subject: [PATCH] fix has_2fa --- connectors/slack/methods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectors/slack/methods.py b/connectors/slack/methods.py index 80fc67e..27deffd 100644 --- a/connectors/slack/methods.py +++ b/connectors/slack/methods.py @@ -250,7 +250,7 @@ def from_dict(json: dict): is_bot=json["is_bot"], updated=json["updated"], is_app_user=json["is_app_user"], - has_2fa=json["has_2fa"], + has_2fa=json.get("has_2fa"), ) def get_user(user_id: str) -> SlackUser: