diff options
Diffstat (limited to 'app/backends/common.py')
| -rw-r--r-- | app/backends/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/backends/common.py b/app/backends/common.py index 9b6232a..25d4f31 100644 --- a/app/backends/common.py +++ b/app/backends/common.py @@ -222,7 +222,7 @@ def normalize_remote_url(value: str) -> str: "Enter a host:port (e.g. 10.20.30.40:8000) or a full URL " f"(e.g. http://10.20.30.40:8000); got {value!r}") try: - parts.port # raises ValueError for a non-numeric port + parts.port # noqa: B018 -- accessing .port raises ValueError when bad except ValueError as exc: raise ValueError( f"Invalid port in remote URL {value!r}: {exc}") from exc |
