fix: initialize git_provider as an empty dictionary in GitHub App server

This commit is contained in:
mrT23
2024-06-23 10:03:52 +03:00
parent 685c443d87
commit 3f3e9909fe

View File

@ -48,7 +48,7 @@ async def handle_github_webhooks(background_tasks: BackgroundTasks, request: Req
installation_id = body.get("installation", {}).get("id")
context["installation_id"] = installation_id
context["settings"] = copy.deepcopy(global_settings)
context["git_provider"] = None
context["git_provider"] = {}
background_tasks.add_task(handle_request, body, event=request.headers.get("X-GitHub-Event", None))
return {}