Fixed exception-handling bug in defaulttags SsiNode. Thanks, Henryk on IRC

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-09 03:30:07 +00:00
parent 5fe45cb0f8
commit 7d0bcc5727
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ class SsiNode(Node):
try: try:
t = Template(output) t = Template(output)
return t.render(context) return t.render(context)
except (TemplateSyntaxError, e): except TemplateSyntaxError, e:
if DEBUG: if DEBUG:
return "[Included template had syntax error: %s]" % e return "[Included template had syntax error: %s]" % e
else: else: