Skip to content

Commit

Permalink
make sure txn is aborted even when exception view rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
davisagli committed Feb 11, 2017
1 parent a4966a4 commit 26dc83f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ZPublisher/WSGIPublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ def publish_module(environ, start_response,
response = _publish(request, module_info)
except Exception as exc:
response = _err_hook(exc, request)
if response.status >= 400:
transaction.manager.doom()
break
except (ConflictError, TransientError) as exc:
if request.supports_retry():
Expand Down

0 comments on commit 26dc83f

Please sign in to comment.