Skip to content

Commit 09e71a9

Browse files
ref: add non-null assertion after guard against query params (#75157)
this should probably use a serializer instead -- but this is the quickest fix once models are checked <!-- Describe your PR here. -->
1 parent 76a7e5d commit 09e71a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/api/endpoints/debug_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ def post(self, request: Request, project) -> Response:
117117
error_message = f"Missing required fields: {', '.join(missing_fields)}"
118118
return Response(data={"error": error_message}, status=status.HTTP_400_BAD_REQUEST)
119119

120+
assert release_name is not None and proguard_uuid is not None
121+
120122
try:
121123
uuid.UUID(proguard_uuid)
122124
except ValueError:

0 commit comments

Comments
 (0)