Просмотр исходного кода

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. -->
anthony sottile 7 месяцев назад
Родитель
Сommit
09e71a9ef8
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/sentry/api/endpoints/debug_files.py

+ 2 - 0
src/sentry/api/endpoints/debug_files.py

@@ -117,6 +117,8 @@ class ProguardArtifactReleasesEndpoint(ProjectEndpoint):
             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: