1. Ian Bicking
  2. Tempita
Issue #3 new

Error in "raise exc_info[0](e).with_traceback(exc_info[2])" under Python 3

Elifarley Cruz
created an issue

This error occurred when an exception is raised during template rendering under Python 3:

{{{

!stack trace

File "/usr/lib/python3.2/site-packages/Tempita-0.5.1-py3.2.egg/tempita/init.py", line 173, in substitute result, defs, inherit = self._interpret(ns) File "/usr/lib/python3.2/site-packages/Tempita-0.5.1-py3.2.egg/tempita/init.py", line 184, in _interpret self._interpret_codes(self._parsed, ns, out=parts, defs=defs) File "/usr/lib/python3.2/site-packages/Tempita-0.5.1-py3.2.egg/tempita/init.py", line 212, in _interpret_codes self._interpret_code(item, ns, out, defs) File "/usr/lib/python3.2/site-packages/Tempita-0.5.1-py3.2.egg/tempita/init.py", line 232, in _interpret_code base = self._eval(parts[0], ns, pos) File "/usr/lib/python3.2/site-packages/Tempita-0.5.1-py3.2.egg/tempita/init.py", line 307, in _eval raise exc_info0.with_traceback(exc_info[2]) TypeError: init() takes exactly 3 arguments (2 given) }}}

Comments (2)

  1. Log in to comment