Closed mcweidner closed 1 year ago
Maybe we could also be more sensitive about the file types and only try json.loads for .json files instead of every file except .yml files
Good Idea, I was unaware of the fact folders could also contain different files.
Adding
continue
to the except block, otherwise anUnboundLocalError: local variable 'tpl' referenced before assignment
is thrown when trying to assigntpl["template_name"] = name
afterjson.loads()
raised an exception.@bosd I think reading the templates should not fail completely because of one invalid template. Maybe we could also be more sensitive about the file types and only try
json.loads
for.json
files instead of every file except .yml files (and for other file types raise a warning that only .yml and .json are supported)? What do you think about this?