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 authored and pbauer committed May 4, 2017
1 parent c2f7436 commit c1ba15f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ZPublisher/WSGIPublisher.py
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 c1ba15f

Please sign in to comment.