diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index 39c7af268b503c11684ca02c67bc86e88f97bd96..19b49a712ccc1e20725f6c980932fbbc687bd002 100755 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -790,7 +790,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): random_factor_list = [time.time(), os.getpid(), os.times()] try: random_factor_list.append(os.getloadavg()) - except OSError: + except (OSError, AttributeError): # AttributeError is required under cygwin pass instance_id = md5.new(str(random_factor_list)).hexdigest()[:30] klass._instance_id = instance_id