Skip to content

Commit a9fe101

Browse files
committed
Satisfy pytype
1 parent bf428d0 commit a9fe101

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

slack_bolt/adapter/aws_lambda/lambda_s3_oauth_flow.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def __init__(
6262
# the settings may already have pre-defined authorize.
6363
# In this case, the /slack/events endpoint doesn't work along with the OAuth flow.
6464
settings.authorize = InstallationStoreAuthorize(
65-
logger=logger,
66-
installation_store=settings.installation_store
65+
logger=logger, installation_store=settings.installation_store
6766
)
6867

6968
OAuthFlow.__init__(self, client=client, logger=logger, settings=settings)

slack_bolt/middleware/ignoring_self_events/ignoring_self_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _is_self_event(
3838
auth_result is not None
3939
and user_id == auth_result.bot_user_id
4040
and body.get("event") is not None
41-
and body.get("event").get("type") not in cls.events_that_should_be_kept
41+
and body.get("event", {}).get("type") not in cls.events_that_should_be_kept
4242
)
4343

4444
def _debug_log(self, body: dict):

0 commit comments

Comments
 (0)