From c50e8a5a531b3a964f30de488ce3c09353d72326 Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Mon, 29 Jul 2024 10:38:38 -0400 Subject: [PATCH] ref: add non-null assertion after guard against query params --- src/sentry/api/endpoints/debug_files.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sentry/api/endpoints/debug_files.py b/src/sentry/api/endpoints/debug_files.py index bc3d002eb3f0c5..c7e187089151b8 100644 --- a/src/sentry/api/endpoints/debug_files.py +++ b/src/sentry/api/endpoints/debug_files.py @@ -117,6 +117,8 @@ def post(self, request: Request, project) -> Response: error_message = f"Missing required fields: {', '.join(missing_fields)}" return Response(data={"error": error_message}, status=status.HTTP_400_BAD_REQUEST) + assert release_name is not None and proguard_uuid is not None + try: uuid.UUID(proguard_uuid) except ValueError: