summaryrefslogtreecommitdiff
path: root/isort/isort.py
diff options
context:
space:
mode:
Diffstat (limited to 'isort/isort.py')
-rw-r--r--isort/isort.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/isort.py b/isort/isort.py
index 67cade39..646c9d0d 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -104,7 +104,7 @@ class SortImports(object):
print("WARNING: {0} was skipped as it's listed in 'skip' setting"
" or matches a glob in 'skip_glob' setting".format(file_path))
file_contents = None
- elif not file_contents:
+ if not self.skipped and not file_contents:
file_encoding = coding_check(file_path)
with open(file_path, encoding=file_encoding, newline='') as file_to_import_sort:
try: