Commit 98201ae5 authored by Jim Fulton's avatar Jim Fulton

Added logic to propigate conflict errors through the ZPublisher retry

mechanism.
parent 7c8a588c
......@@ -175,7 +175,8 @@ def zpublisher_exception_hook(
LOG('Z2 CONFLICT', INFO,
'Competing writes at, %s' % REQUEST.get('PATH_INFO', ''),
error=sys.exc_info())
raise ZPublisher.Retry
raise ZPublisher.Retry(t, v, traceback)
if t is ZPublisher.Retry: v.reraise()
if (getattr(REQUEST.get('RESPONSE', None), '_error_format', '')
!='text/html'): raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment