summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-08-25 05:48:49 -0400
committerChris McDonough <chrism@plope.com>2011-08-25 05:48:49 -0400
commit35e28e3ba9ccaeb1d0542afaf6460748413e5813 (patch)
treec1e72e5add2411d7ded12b8da391f12162867eca
parent55860e65544713c4dfb000c4e516cdd7157c1040 (diff)
downloadpyramid-35e28e3ba9ccaeb1d0542afaf6460748413e5813.tar.gz
pyramid-35e28e3ba9ccaeb1d0542afaf6460748413e5813.tar.bz2
pyramid-35e28e3ba9ccaeb1d0542afaf6460748413e5813.zip
use the right value for 'error'
-rw-r--r--pyramid/mako_templating.py5
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