Fix problem in function _is_file() to except TypeError if given None as input.

feature/documentation-builds-dirhtml
Isis Lovecruft 2013-03-07 02:40:55 +00:00 committed by Isis Lovecruft
parent eed5b7a8ac
commit 8159d1c80f
1 changed files with 2 additions and 0 deletions

View File

@ -554,6 +554,8 @@ def _is_file(input):
assert os.lstat(input).st_size > 0, "not a file"
except AssertionError as ae:
raise ProtectedOption(ae.message)
except TypeError:
return False
def _has_readwrite(path):
"""