Merge pull request #7 from pemcconnell-anyvision/develop

Only attempt lines trim if the list isn't empty
This commit is contained in:
David Darias
2020-04-28 18:26:49 -04:00
committed by GitHub
+1
View File
@@ -106,6 +106,7 @@ def update_hosts_file():
break;
#remove all the trailing newlines on the line list
if lines:
while lines[-1].strip()=="": lines.pop()
#append all the domain lines