Skip to content

Commit ff65483

Browse files
committed
no cov on exception
1 parent 972c275 commit ff65483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactpy_router/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _link(attributes: dict[str, Any], *children: Any) -> VdomDict:
4848
class_name = " ".join([attributes.pop("class_name"), class_name])
4949
if "href" in attributes and "to" not in attributes:
5050
attributes["to"] = attributes.pop("href")
51-
if "to" not in attributes:
51+
if "to" not in attributes: # pragma: no cover
5252
raise ValueError("The `to` attribute is required for the `Link` component.")
5353
to = attributes.pop("to")
5454

0 commit comments

Comments
 (0)