From 37e6321d2efff32e8c5cf1633d5009468da4b056 Mon Sep 17 00:00:00 2001 From: Campbell Alden Date: Sat, 19 Jun 2021 15:10:44 +0900 Subject: [PATCH] Fix scope issues --- create-template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create-template.py b/create-template.py index 208e03a..13ca206 100644 --- a/create-template.py +++ b/create-template.py @@ -65,11 +65,11 @@ if ARGS.template: try: with open(os.path.join(TEMPLATE_PATH, ARGS.template + '.yml'), 'r') as infile: settings = yaml.load(infile, Loader=yaml.FullLoader) + createThings3Template(settings, ARGS) except Exception as e: print('Could not load template for "{}"'.format(ARGS.title)) print(e) - createThings3Template(settings, ARGS) elif ARGS.options: print('\n'.join(getTemplateOptions())) else: