[FIX] base_quality_interrogation : errno is not attribute of socket.error in python2.5

bzr revid: hmo@tinyerp.com-20090821100954-xj60p794f6l9203i
This commit is contained in:
Harry (Open ERP) 2009-08-21 15:39:54 +05:30
parent 55ce2f06c3
commit f404cafca8
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def execute(connector, method, *args):
try:
res = getattr(connector,method)(*args)
except socket.error,e:
if e.errno == 111:
if e.args[0] == 111:
print 'Please wait %d sec to start server....'%(waittime)
time.sleep(waittime)
res = execute(connector, method, *args)