diff options
| author | Chris McDonough <chrism@plope.com> | 2011-08-25 05:48:49 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-08-25 05:48:49 -0400 |
| commit | 35e28e3ba9ccaeb1d0542afaf6460748413e5813 (patch) | |
| tree | c1e72e5add2411d7ded12b8da391f12162867eca | |
| parent | 55860e65544713c4dfb000c4e516cdd7157c1040 (diff) | |
| download | pyramid-35e28e3ba9ccaeb1d0542afaf6460748413e5813.tar.gz pyramid-35e28e3ba9ccaeb1d0542afaf6460748413e5813.tar.bz2 pyramid-35e28e3ba9ccaeb1d0542afaf6460748413e5813.zip | |
use the right value for 'error'
| -rw-r--r-- | pyramid/mako_templating.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pyramid/mako_templating.py b/pyramid/mako_templating.py index b8105c68a..5fde4e346 100644 --- a/pyramid/mako_templating.py +++ b/pyramid/mako_templating.py @@ -149,8 +149,9 @@ class MakoLookupTemplateRenderer(object): try: exc_info = sys.exc_info() errtext = exceptions.text_error_template().render( - error=exc_info[0], - traceback=exc_info[2]) + error=exc_info[1], + traceback=exc_info[2] + ) raise MakoRenderingException(errtext) finally: del exc_info |
