Skip to content

Commit

Permalink
Fixed bug on uninitialized variable args.debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
blupants committed Aug 25, 2024
1 parent 716feae commit fd40046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/n0s1/n0s1.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def main(callback=None):
parser = init_argparse()
args = parser.parse_args()

DEBUG = args.debug
DEBUG = False

regex_config = None
cfg = {}
Expand All @@ -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]
Expand Down

0 comments on commit fd40046

Please sign in to comment.