Commit 6c0e8efe authored by Romain Courteaud's avatar Romain Courteaud

Handle AttributeError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26099 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ad762ce1
......@@ -264,7 +264,11 @@ class ContributionTool(BaseTool):
#document.notifyWorkflowCreated()
# Allow reindexing, reindex it and return the document
delattr(document, 'isIndexable')
try:
delattr(document, 'isIndexable')
except AttributeError:
# Document does not have such attribute
pass
document.reindexObject()
return document
......
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