From 89c8bc308e03486a963e42b465e98a3b4f5a7b49 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 06:19:00 +0000 Subject: [PATCH] Fix critical IndentationError in validate_hostname Remove unreachable dead code after return statement that caused syntax error. The code after 'return False' on line 936 was unreachable and contained an empty 'for' loop that prevented the script from running at all. Error: IndentationError: expected an indented block after 'for' statement on line 940 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- main.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.py b/main.py index a9ce7d7..4ddf8fe 100644 --- a/main.py +++ b/main.py @@ -935,10 +935,6 @@ def validate_hostname(hostname: str) -> bool: ) return False - if not addr_info: - return False - for res in addr_info: - @lru_cache(maxsize=128) def validate_folder_url(url: str) -> bool: