mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +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:
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
Block a user