mirror of https://github.com/django/django.git
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:
parent
5fe45cb0f8
commit
7d0bcc5727
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue