Skip to content

Commit

Permalink
Ignore untested exception
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jun 24, 2024
1 parent 1e45b9e commit 0fce654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nox_poetry/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def to_constraint(requirement_string: str, line: int) -> Optional[str]:

try:
requirement = Requirement(requirement_string)
except InvalidRequirement as error:
except InvalidRequirement as error: # pragma: no cover
raise RuntimeError(f"line {line}: {requirement_string!r}: {error}") from error

if not (requirement.name and requirement.specifier):
Expand Down

0 comments on commit 0fce654

Please sign in to comment.