From 547f71b2439e9d7153f082b6ca1bde9d3eaf185c Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 12 Nov 2012 10:00:06 -0500 Subject: [PATCH] Closes #38. Check to see if the file exists before checking to see if it should be skipped. --- flake8/util.py | 2 ++ 1 file changed, 2 insertions(+) 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()