summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-02-29 21:20:35 -0600
committerMichael Merickel <michael@merickel.org>2016-02-29 21:20:35 -0600
commit68b303afa462db0cdfb903e02e65813a08f2e0cf (patch)
tree32ee008b8ee94f87fe8f0b7701c032a84cb9a3f6
parent7f1174bc5aafff4050ba0863629401c7641588b2 (diff)
downloadpyramid-68b303afa462db0cdfb903e02e65813a08f2e0cf.tar.gz
pyramid-68b303afa462db0cdfb903e02e65813a08f2e0cf.tar.bz2
pyramid-68b303afa462db0cdfb903e02e65813a08f2e0cf.zip
add exception and exc_info to request
-rw-r--r--pyramid/view.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyramid/view.py b/pyramid/view.py
index 822fb29d6..589b13578 100644
--- a/pyramid/view.py
+++ b/pyramid/view.py
@@ -606,6 +606,8 @@ class ViewMethodsMixin(object):
# have been mutated by the view, and its state is not
# sane (e.g. caching headers)
with hide_attrs(request, 'exception', 'exc_info', 'response'):
+ attrs['exception'] = exc_info[0]
+ attrs['exc_info'] = exc_info
# we use .get instead of .__getitem__ below due to
# https://github.com/Pylons/pyramid/issues/700
request_iface = attrs.get('request_iface', IRequest)