Fix scope issues

This commit is contained in:
Campbell Alden 2021-06-19 15:10:44 +09:00
parent d77d2102ed
commit 37e6321d2e

View file

@ -65,11 +65,11 @@ if ARGS.template:
try: try:
with open(os.path.join(TEMPLATE_PATH, ARGS.template + '.yml'), 'r') as infile: with open(os.path.join(TEMPLATE_PATH, ARGS.template + '.yml'), 'r') as infile:
settings = yaml.load(infile, Loader=yaml.FullLoader) settings = yaml.load(infile, Loader=yaml.FullLoader)
createThings3Template(settings, ARGS)
except Exception as e: except Exception as e:
print('Could not load template for "{}"'.format(ARGS.title)) print('Could not load template for "{}"'.format(ARGS.title))
print(e) print(e)
createThings3Template(settings, ARGS)
elif ARGS.options: elif ARGS.options:
print('\n'.join(getTemplateOptions())) print('\n'.join(getTemplateOptions()))
else: else: