Skip to content

Commit

Permalink
fix KeyError 'team'
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Sep 27, 2023
1 parent 78cec14 commit 0f2a56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _handle_slack_event(event: dict, background_tasks: BackgroundTasks):
case "member_joined_channel":
bi = BotIntegration.objects.get(
slack_channel_id=message["channel"],
slack_team_id=event["team"],
slack_team_id=message["team"],
)
if not bi.slack_create_personal_channels:
return
Expand Down

0 comments on commit 0f2a56d

Please sign in to comment.