Skip to content

Commit

Permalink
Catch the ValueError in both invocations of DepsReader._read.
Browse files Browse the repository at this point in the history
Added a docstring to _read to explicitly declare the intended interface. Closes #105
  • Loading branch information
jaraco committed Jun 22, 2024
1 parent 48dfc07 commit 8a52a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pip_run/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def read_python(self):
raw_reqs = suppress(ValueError)(self._read)('__requires__') or []
reqs_items = jaraco.text.yield_lines(raw_reqs)
deps = Dependencies.load(reqs_items)
with contextlib.suppress(Exception):
with contextlib.suppress(ValueError):
deps.index_url = self._read('__index_url__')
return deps

Expand Down

0 comments on commit 8a52a92

Please sign in to comment.