Skip to content

Commit

Permalink
exception views should never have a name=
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Mar 1, 2016
1 parent 68b303a commit 4ff7514
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyramid/view.py
Expand Up @@ -600,7 +600,6 @@ def invoke_exception_view(
exc_info = sys.exc_info()
attrs = request.__dict__
context_iface = providedBy(exc_info[0])
view_name = attrs.get('view_name', '')

# clear old generated request.response, if any; it may
# have been mutated by the view, and its state is not
Expand All @@ -616,7 +615,7 @@ def invoke_exception_view(
request,
exc_info[0],
context_iface,
view_name,
'',
view_types=None,
view_classifier=IExceptionViewClassifier,
secure=secure,
Expand Down

0 comments on commit 4ff7514

Please sign in to comment.