Commit da5d4bdc authored by Arnaud Fontaine's avatar Arnaud Fontaine

Catch NotImplementedError when importing Components from filesystem.

At most until everything has been implemented.
parent f820ba56
......@@ -99,7 +99,9 @@ class ComponentTool(BaseTool):
getattr(erp5.portal_type,
content_portal_type).importAllFromFilesystem(self,
erase_existing=erase_existing))
except AttributeError:
# XXX-arnau: NotImplementedErrror only until everything has been
# implemented
except (NotImplementedError, AttributeError):
LOG("ERP5Type.Tool.ComponentTool", WARNING, "Could not import %ss" % \
content_portal_type)
......
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