Commit 679467c9 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type/patches/WSGIPublisher: Avoid boolean evaluation of foreign object.

Spotted when comparing this code with ZPublisher.Publish.
parent 68527217
Pipeline #17966 passed with stage
in 0 seconds
......@@ -309,7 +309,7 @@ def transaction_pubevents(request, response, err_hook, tm=transaction.manager):
if request.environ.get('x-wsgiorg.throw_errors', False):
if err_hook:
if err_hook is not None:
parents = request.get('PARENTS')
if parents:
parents = parents[0]
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