[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user