Check to see if the file exists before checking to see if it should be
skipped.
This commit is contained in:
Ian Cordasco 2012-11-12 10:00:06 -05:00
parent 72bd7ee8cf
commit 547f71b243

View file

@ -29,6 +29,8 @@ def skip_file(path):
# flake8: noqa
"""
if not os.path.isfile(path):
return False
f = open(path)
try:
content = f.read()