summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-30 10:44:51 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-30 10:44:51 +0200
commiteace6aa5e6763e03c99c27be0e56da360076aa0d (patch)
tree6c9b6842bafe5e3ea3a7240c53a1d0a171608f8f /ishtar_common/models.py
parente1a3d19f4b28c9b77bc711d7222e163b8f41a1ff (diff)
downloadIshtar-eace6aa5e6763e03c99c27be0e56da360076aa0d.tar.bz2
Ishtar-eace6aa5e6763e03c99c27be0e56da360076aa0d.zip
Secretary patch to fix error report. General catch of secretary errors to display an error page.
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 176559934..35c35e97b 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3378,6 +3378,8 @@ class DocumentTemplate(models.Model):
raise TemplateSyntaxError(str(e), e.lineno)
except UndefinedError as e:
raise TemplateSyntaxError(str(e), 0)
+ except Exception as e:
+ raise TemplateSyntaxError(str(e), 0)
output = open(output_name, 'wb')
output.write(result)
return output_name