fix: error when no template is provided to initCmd

This commit is contained in:
Jordan ⌨️ 2023-05-29 18:03:08 +02:00 committed by Sleepy Monax
parent 8f547e93d5
commit 5a926057a7

View file

@ -241,7 +241,7 @@ def initCmd(args: Args):
template = args.consumeArg()
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"]
list = "list" in args.opts