From 80147dcb351c0da66feb36648ba2a211b221af66 Mon Sep 17 00:00:00 2001 From: Copilot <223556219+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 07:19:11 +0000 Subject: [PATCH] Fix critical IndentationError in validate_hostname function Remove unreachable dead code after return statement that was causing: IndentationError: expected an indented block after 'for' statement on line 940 The code after 'return False' at line 936 was unreachable and contained an empty for loop, which is a syntax error in Python. Fixes the syntax error preventing script execution. 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: