[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:
parent
55ce2f06c3
commit
f404cafca8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue