fix(validation): keep runner parse failures unknown

This commit is contained in:
huanghuoguoguo
2026-05-16 10:59:24 +08:00
parent 5c932c66e6
commit d4602bca34
+1 -1
View File
@@ -89,7 +89,7 @@ def get_runner_category(runner_name: str, runner_url: str) -> str:
parsed_url = urlparse(runner_url) parsed_url = urlparse(runner_url)
host = parsed_url.hostname.lower() if parsed_url.hostname else '' host = parsed_url.hostname.lower() if parsed_url.hostname else ''
_ = parsed_url.port _ = parsed_url.port
except (TypeError, ValueError): except Exception:
return RunnerCategory.UNKNOWN return RunnerCategory.UNKNOWN
if not parsed_url.scheme or not host or not _is_valid_hostname(host): if not parsed_url.scheme or not host or not _is_valid_hostname(host):