Commit 0e789c37 authored by Jean-Paul Smets's avatar Jean-Paul Smets

cygwin support added


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4177 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5aaec4f4
......@@ -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
......
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