From eace6aa5e6763e03c99c27be0e56da360076aa0d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 30 Aug 2019 10:44:51 +0200 Subject: Secretary patch to fix error report. General catch of secretary errors to display an error page. --- ishtar_common/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/models.py') 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 -- cgit v1.2.3