fix: error when no template is provided to initCmd
This commit is contained in:
parent
2fd545f313
commit
edc4119bf7
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue