almost impossible to fail

This commit is contained in:
Nikos Kouremenos 2005-12-26 18:38:05 +00:00
parent 7425e3f073
commit 0584c4bff1
1 changed files with 1 additions and 1 deletions

View File

@ -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