Catch OSErrors and IOErrors also in util._is_file if input does not exist.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-04-17 00:10:52 +00:00
parent 0b9ee78d20
commit 8dcf49fa95
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ def _is_file(input):
"""
try:
assert os.lstat(input).st_size > 0, "not a file: %s" % input
except (AssertionError, TypeError) as error:
except (AssertionError, TypeError, IOError, OSError) as error:
logger.debug(error.message)
return False
else: