1
0
mirror of https://github.com/django/django.git synced 2024-12-25 18:46:22 +00:00

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

View File

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