diff options
| author | Michael Merickel <michael@merickel.org> | 2016-02-29 21:20:35 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2016-02-29 21:20:35 -0600 |
| commit | 68b303afa462db0cdfb903e02e65813a08f2e0cf (patch) | |
| tree | 32ee008b8ee94f87fe8f0b7701c032a84cb9a3f6 | |
| parent | 7f1174bc5aafff4050ba0863629401c7641588b2 (diff) | |
| download | pyramid-68b303afa462db0cdfb903e02e65813a08f2e0cf.tar.gz pyramid-68b303afa462db0cdfb903e02e65813a08f2e0cf.tar.bz2 pyramid-68b303afa462db0cdfb903e02e65813a08f2e0cf.zip | |
add exception and exc_info to request
| -rw-r--r-- | pyramid/view.py | 2 |
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) |
