diff --git a/flake8/util.py b/flake8/util.py index 6e9735b..1cd61b0 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -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()