Skip to content

Commit

Permalink
Fix Namspace error when running 'dgenies gallery' without add or del …
Browse files Browse the repository at this point in the history
…subcommand
  • Loading branch information
pbordron committed May 4, 2023
1 parent a5de857 commit 83af6bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/dgenies
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ def parse_args():
return "clear", None
return "clear", args
if args.subparser_name == "gallery":
return "gallery_" + args.which, args
if len(vars(args)) > 1:
return "gallery_" + args.which, args
else:
print("\nYou must specify the gallery subcommand ('add' or 'del') to launch")
return None, None
if args.subparser_name == "inforun":
return "inforun", args
else:
Expand Down

0 comments on commit 83af6bd

Please sign in to comment.