mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 00:14:46 +00:00
Closes #38.
Check to see if the file exists before checking to see if it should be skipped.
This commit is contained in:
parent
72bd7ee8cf
commit
547f71b243
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ def skip_file(path):
|
||||||
|
|
||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
"""
|
"""
|
||||||
|
if not os.path.isfile(path):
|
||||||
|
return False
|
||||||
f = open(path)
|
f = open(path)
|
||||||
try:
|
try:
|
||||||
content = f.read()
|
content = f.read()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue