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:
|
||||
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:
|
||||
|
|
|
|||
Reference in a new issue