Skip to content

Commit

Permalink
Always push the threadlocals
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalresistor committed Jun 5, 2017
1 parent 3bb3c6e commit 4f66355
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyramid/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,10 +700,9 @@ def invoke_exception_view(
# https://github.com/Pylons/pyramid/issues/700
request_iface = attrs.get('request_iface', IRequest)

try:
if request is not self:
manager.push({'request': request, 'registry': registry})
manager.push({'request': request, 'registry': registry})

try:
response = _call_view(
registry,
request,
Expand Down

0 comments on commit 4f66355

Please sign in to comment.