Improve check_website validation error message

This commit is contained in:
monosans
2024-04-11 23:13:31 +03:00
parent 0050b08d87
commit dbdcea6d86
+1 -1
View File
@@ -245,7 +245,7 @@ class Settings:
) -> None:
parsed_url = urlparse(value)
if parsed_url.scheme not in {"http", "https"} or not parsed_url.netloc:
msg = f"invalid URL: {value}"
msg = f"invalid check_website: {value}"
raise ValueError(msg)
if parsed_url.scheme == "http":