diff options
-rw-r--r-- | sneak_peek_tag/templatetags/sneak_peek.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sneak_peek_tag/templatetags/sneak_peek.py b/sneak_peek_tag/templatetags/sneak_peek.py index 6578ecc..4b771f4 100644 --- a/sneak_peek_tag/templatetags/sneak_peek.py +++ b/sneak_peek_tag/templatetags/sneak_peek.py @@ -1,4 +1,4 @@ -from django.template import Library, Node +from django.template import Library, Node, TemplateSyntaxError register = Library() @@ -11,7 +11,7 @@ def sneak_peek(parser, token): except ValueError: pass if not (style[0] == style[-1] and style[0] in ('"', "'")): - raise template.TemplateSyntaxError("%r tag's argument should be in quotes" % tag) + raise TemplateSyntaxError("%r tag's argument should be in quotes" % tag) nodelist = parser.parse(('endsneak_peek',)) parser.delete_first_token() return SneakPeekWrapper(nodelist, style[1:-1]) |