mirror of
https://github.com/django/django.git
synced 2024-12-26 19:16:11 +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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user