mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-20 09:06:32 +00:00
Return an explicit False from move_hosts_file_into_place
Unsupported platforms fell off the end and returned None.
This commit is contained in:
1 parent
15aa742a19
commit
1e920988f9
1 file changed
+2
@@ -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():
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user