From 0fce6543cf7d05c47d51a90bc673b9905c7e49d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Mon, 24 Jun 2024 23:25:49 +0200 Subject: [PATCH] Ignore untested exception --- src/nox_poetry/sessions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nox_poetry/sessions.py b/src/nox_poetry/sessions.py index f32bf13e..9b21d8d4 100644 --- a/src/nox_poetry/sessions.py +++ b/src/nox_poetry/sessions.py @@ -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):