diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py index 5cff0d730475cb446604a3a1840ec50094863585..659470f0f241df09477416bcb9bfab426e0e3c73 100644 --- a/product/ERP5Catalog/CatalogTool.py +++ b/product/ERP5Catalog/CatalogTool.py @@ -717,7 +717,7 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): """ if path is None and uid is None: path = self.__url(object) - if object is None: + elif object is None: raise TypeError, 'One of uid, path and object parameters must not be None' self.uncatalog_object(path=path,uid=uid, sql_catalog_id=sql_catalog_id)