From fd400466c35b001f1bb287e6e21f198af0237511 Mon Sep 17 00:00:00 2001 From: blupants Date: Sun, 25 Aug 2024 12:26:13 -0500 Subject: [PATCH] Fixed bug on uninitialized variable args.debug. --- src/n0s1/n0s1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/n0s1/n0s1.py b/src/n0s1/n0s1.py index 76dfa50..0114241 100755 --- a/src/n0s1/n0s1.py +++ b/src/n0s1/n0s1.py @@ -476,7 +476,7 @@ def main(callback=None): parser = init_argparse() args = parser.parse_args() - DEBUG = args.debug + DEBUG = False regex_config = None cfg = {} @@ -485,6 +485,8 @@ def main(callback=None): parser.print_help() return + DEBUG = args.debug + if os.path.exists(args.regex_file): with open(args.regex_file, "r") as f: extension = os.path.splitext(args.regex_file)[1]