Commit 90e96ee4 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type/patches/WSGIPublisher: Tolerate missing PARENTS during error handling.

This can happen if there is an error very early during publication.
parent 97403610
......@@ -286,7 +286,7 @@ def transaction_pubevents(request, response, err_hook, tm=transaction.manager):
reraise(*exc_info)
if err_hook:
parents = request['PARENTS']
parents = request.get('PARENTS')
if parents:
parents = parents[0]
retry = False
......
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