Skip to content

Commit

Permalink
Fix exclude paths none in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
emdoyle committed Feb 8, 2024
1 parent 0a34ba0 commit 9de4b14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modguard/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def handle_shared_arguments(args: argparse.Namespace):
if has_error:
sys.exit(1)

return argparse.Namespace(path=path, exclude_paths=exclude_paths.split(","))
return argparse.Namespace(
path=path, exclude_paths=exclude_paths.split(",") if exclude_paths else None
)


def modguard(args: argparse.Namespace):
Expand Down

0 comments on commit 9de4b14

Please sign in to comment.