From e2ce13ebe2d777a01064af6c44ebbbe2cdd9756f Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Sun, 6 Aug 2023 19:02:40 -0400 Subject: [PATCH] Minor changes --- src/__main__.py | 2 +- src/utils/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__main__.py b/src/__main__.py index ac4dc71..5507922 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -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) diff --git a/src/utils/utils.py b/src/utils/utils.py index 3d9c2a8..b3eb8fc 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -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)