almost impossible to fail
This commit is contained in:
parent
7425e3f073
commit
0584c4bff1
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ def temp_failure_retry(func, *args, **kwargs):
|
||||||
except (os.error, IOError, select.error), ex:
|
except (os.error, IOError, select.error), ex:
|
||||||
if hasattr(ex, 'errno'):
|
if hasattr(ex, 'errno'):
|
||||||
errnum = 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]
|
errnum = ex.args[0]
|
||||||
else:
|
else:
|
||||||
errnum = -1
|
errnum = -1
|
||||||
|
|
Loading…
Add table
Reference in a new issue