fix: error when no template is provided to initCmd

This commit is contained in:
Jordan ⌨️ 2023-05-29 18:03:08 +02:00
parent 2fd545f313
commit edc4119bf7

View file

@ -241,7 +241,7 @@ def initCmd(args: Args):
template = args.consumeArg() template = args.consumeArg()
if template is None: if template is None:
template = "default" raise RuntimeError("No template was provided")
repo = const.DEFAULT_REPO_TEMPLATES if not "repo" in args.opts else args.opts["repo"] repo = const.DEFAULT_REPO_TEMPLATES if not "repo" in args.opts else args.opts["repo"]
list = "list" in args.opts list = "list" in args.opts