From 7245af7c60609231b95e5bc7a74e529a7c7beead Mon Sep 17 00:00:00 2001 From: TheGreatAlgo <37487508+TheGreatAlgo@users.noreply.github.com> Date: Fri, 7 Jul 2023 23:44:52 +0200 Subject: [PATCH] fix: error message --- src/werkzeug/routing/rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/werkzeug/routing/rules.py b/src/werkzeug/routing/rules.py index d65dce0283..4f983f334e 100644 --- a/src/werkzeug/routing/rules.py +++ b/src/werkzeug/routing/rules.py @@ -454,7 +454,7 @@ def __init__( websocket: bool = False, ) -> None: if not string.startswith("/"): - raise ValueError("urls must start with a leading slash:", string) + raise ValueError(f"urls must start with a leading slash: {string!r}") self.rule = string self.is_leaf = not string.endswith("/") self.is_branch = string.endswith("/")