mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-09-24 14:20:09 +01:00
Document empty except in domain_to_idna
This commit is contained in:
@@ -1666,6 +1666,7 @@ def domain_to_idna(line):
|
||||
|
||||
splited_line[index] = splited_line[index].encode("IDNA").decode("UTF-8")
|
||||
except IndexError:
|
||||
# No hostname field to encode, leave the line as-is.
|
||||
pass
|
||||
return separator.join(splited_line)
|
||||
return line.encode("IDNA").decode("UTF-8")
|
||||
|
||||
Reference in New Issue
Block a user