diff options
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/library.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/library.py b/django/template/library.py index 69fdeafc3b..be45331309 100644 --- a/django/template/library.py +++ b/django/template/library.py @@ -243,7 +243,7 @@ def parse_bits(parser, bits, params, varargs, varkw, defaults, keyword arguments. """ if takes_context: - if params[0] == 'context': + if params and params[0] == 'context': params = params[1:] else: raise TemplateSyntaxError( |
