[Checkins] SVN: Sandbox/malthe/chameleon.core/src/chameleon/core/template.py Catch plain syntax errors, too.
Malthe Borch
mborch at gmail.com
Sat Nov 15 20:19:16 EST 2008
Log message for revision 92997:
Catch plain syntax errors, too.
Changed:
U Sandbox/malthe/chameleon.core/src/chameleon/core/template.py
-=-
Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/template.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/template.py 2008-11-16 01:18:27 UTC (rev 92996)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/template.py 2008-11-16 01:19:16 UTC (rev 92997)
@@ -154,7 +154,7 @@
def cook(self, **kwargs):
try:
template = self.compiler(**kwargs)
- except etree.XMLSyntaxError, exception:
+ except (SyntaxError, etree.XMLSyntaxError), exception:
exception.msg += ' (%s)' % self.filename
raise exception
More information about the Checkins
mailing list