Package: python3-jinja2
Version: 2.6-1
Severity: minor

$ python3 -c "import jinja2 as j; j.Template('{{foo[0]}}').render()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 895, in 
render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 671, in 
handle_exception
    raise exc_value.with_traceback(tb)
  File "<template>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 354, in 
getitem
    return obj[argument]
jinja2.exceptions.UndefinedError: b"'foo' is undefined"


I would expect it to look rather like this:

jinja2.exceptions.UndefinedError: 'foo' is undefined


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-jinja2 depends on:
ii  libc6               2.13-32
ii  python3             3.2.3~rc1-2
ii  python3-markupsafe  0.15-1

Versions of packages python3-jinja2 recommends:
ii  python3-pkg-resources  0.6.24-1

--
Jakub Wilk



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to