Compare commits
2 Commits
11553e6f09
...
7eb78e5346
Author | SHA1 | Date |
---|---|---|
Emmanuel Garette | 7eb78e5346 | |
Emmanuel Garette | d18906e011 |
|
@ -357,9 +357,9 @@ class CreoleTemplateEngine:
|
||||||
data = str(cheetah_template)
|
data = str(cheetah_template)
|
||||||
except CheetahNotFound as err:
|
except CheetahNotFound as err:
|
||||||
varname = err.args[0][13:-1]
|
varname = err.args[0][13:-1]
|
||||||
raise TemplateError(_(f"Error: unknown variable used in template {destfilename} : {varname}"))
|
raise TemplateError(_(f"Error: unknown variable used in template {source} to {destfilename} : {varname}"))
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise TemplateError(_(f"Error while instantiating template {destfilename}: {err}"))
|
raise TemplateError(_(f"Error while instantiating template {source} to {destfilename}: {err}"))
|
||||||
|
|
||||||
with open(destfilename, 'w') as file_h:
|
with open(destfilename, 'w') as file_h:
|
||||||
file_h.write(data)
|
file_h.write(data)
|
||||||
|
|
Loading…
Reference in New Issue