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",