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 May 23, 2017
1 parent 3bb3c6e commit 968c1a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyramid/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,7 @@ def invoke_exception_view(
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})

response = _call_view(
registry,
Expand Down

0 comments on commit 968c1a9

Please sign in to comment.