Minor changes

This commit is contained in:
slashtechno 2023-08-06 19:02:40 -04:00
parent 61990cfa4b
commit e2ce13ebe2
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ def main():
exit(1)
try:
args.func(args)
except AttributeError as e:
except AttributeError:
logger.error("No subcommand specified")
argparser.print_help()
exit(1)

View File

@ -67,7 +67,7 @@ def convert_to_list(file: pathlib.Path) -> list:
"ip6-allnodes",
"ip6-allrouters",
"ip6-allhosts",
"0.0.0.0",
"0.0.0.0", # skipcq: BAN-B104
]
matches = [
re.search(r"^(?:127\.0\.0\.1|0\.0\.0\.0|::1)\s+(.+?)(?:\s+#.+)?$", line)