Fix scope issues
This commit is contained in:
parent
d77d2102ed
commit
37e6321d2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Reference in a new issue