Commit fd28ecaf authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_full_text_mroonga_catalog: don't raise if document is not converted

parent 40220b0b
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<value> <string>from Products.ERP5Type.Utils import UpperCase\n <value> <string>from Products.ERP5Type.Utils import UpperCase\n
from ZODB.POSException import ConflictError\n from ZODB.POSException import ConflictError\n
from zExceptions import Unauthorized\n from zExceptions import Unauthorized\n
from Products.ERP5.Document.Document import NotConvertedError\n
\n \n
method = context.z_catalog_fulltext_list\n method = context.z_catalog_fulltext_list\n
property_list = method.arguments_src.split()\n property_list = method.arguments_src.split()\n
...@@ -78,6 +79,8 @@ for path in path_list:\n ...@@ -78,6 +79,8 @@ for path in path_list:\n
raise\n raise\n
except Unauthorized: # should happen in tricky testERP5Catalog tests only \n except Unauthorized: # should happen in tricky testERP5Catalog tests only \n
continue\n continue\n
except NotConvertedError:\n
continue\n
except Exception, e:\n except Exception, e:\n
exception = e\n exception = e\n
failed_path_list.append(path)\n failed_path_list.append(path)\n
......
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