Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ class SentryAppInstallationExternalRequestsEndpoint(SentryAppInstallationBaseEnd
}

def get(self, request: Request, installation) -> Response:
try:
project = Project.objects.get(
id=request.GET.get("projectId"), organization_id=installation.organization_id
)
except Project.DoesNotExist:
project = None
project_id = request.GET.get("projectId")
project = None
if project_id:
try:
project = Project.objects.get(
id=project_id, organization_id=installation.organization_id
)
except Project.DoesNotExist:
pass

kwargs = {
"install": installation,
Expand Down
Loading