Minor changes
This commit is contained in:
parent
61990cfa4b
commit
e2ce13ebe2
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue