almost impossible to fail
This commit is contained in:
parent
7425e3f073
commit
0584c4bff1
|
@ -45,7 +45,7 @@ def temp_failure_retry(func, *args, **kwargs):
|
|||
except (os.error, IOError, select.error), ex:
|
||||
if hasattr(ex, 'errno'):
|
||||
errnum = ex.errno
|
||||
elif hasattr(ex, 'args') and len(ex.args) > 0:
|
||||
elif hasattr(ex, 'args') and ex.args is not None and len(ex.args) > 0:
|
||||
errnum = ex.args[0]
|
||||
else:
|
||||
errnum = -1
|
||||
|
|
Loading…
Reference in New Issue