From 6adc131716156cab30318a3463f45b6655324215 Mon Sep 17 00:00:00 2001 From: Gerrod Ubben Date: Thu, 26 Mar 2026 12:08:06 -0400 Subject: [PATCH] Small optimization in simple detail view --- pulp_python/app/pypi/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulp_python/app/pypi/views.py b/pulp_python/app/pypi/views.py index 254a2dd6..87f03dac 100644 --- a/pulp_python/app/pypi/views.py +++ b/pulp_python/app/pypi/views.py @@ -365,7 +365,7 @@ def retrieve(self, request, path, package): releases = self.pull_through_package_simple(normalized, path, self.distribution.remote) elif self.should_redirect(repo_version=repo_ver): return redirect(urljoin(self.base_content_url, f"{path}/simple/{normalized}/")) - if content: + if content is not None: local_packages = content.filter(name_normalized=normalized) packages = local_packages.values( "filename",