]> git.99rst.org Git - stevenblack-hosts.git/commitdiff
Return an explicit False from move_hosts_file_into_place
authorXhmikosR <redacted>
Sun, 5 Jul 2026 15:04:39 +0000 (18:04 +0300)
committerXhmikosR <redacted>
Sun, 5 Jul 2026 15:04:39 +0000 (18:04 +0300)
Unsupported platforms fell off the end and returned None.

updateHostsFile.py

index cb716b07965db3288186fbd7284da8be03bb7282..2376bf89aa2062ec68cc02a332b54f774c5c5527 100755 (executable)
@@ -1452,6 +1452,8 @@ def move_hosts_file_into_place(finalfile):
             print_failure(f"Replacing {target_file} failed.")
             return False
 
+    return False
+
 
 def flush_dns_cache():
     """
git clone https://git.99rst.org/PROJECT