Fix typo in cv.url_no_path (#129402)
This commit is contained in:
parent
f3afa6a7d9
commit
2236ca3e12
1 changed files with 1 additions and 1 deletions
|
@ -874,7 +874,7 @@ def url_no_path(value: Any) -> str:
|
|||
url_in = url(value)
|
||||
|
||||
if urlparse(url_in).path not in ("", "/"):
|
||||
raise vol.Invalid("url it not allowed to have a path component")
|
||||
raise vol.Invalid("url is not allowed to have a path component")
|
||||
|
||||
return url_in
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue