Skip to content

Commit

Permalink
Fixed NotFound raised for exclusively extra index packages
Browse files Browse the repository at this point in the history
* Fixed NotFound raised for exclusively extra index packages
* Test extra-index package

See PR #11

Co-authored-by: Laurie O <[email protected]>
  • Loading branch information
aiudirog and EpicWink committed Aug 4, 2022
1 parent a23bffa commit 1e80ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxpi/_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def list_files(self, package_name: str) -> t.List[File]:
for file in extra_files:
if file.name not in {f.name for f in files}:
files.append(file)
if exc:
if not files and exc:
raise exc
return files

Expand Down

0 comments on commit 1e80ca5

Please sign in to comment.