From 6a73db44c8bd4671b503be069a409d268efb10a2 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Thu, 7 Mar 2019 22:56:13 -0800 Subject: Fix logic error in skip check --- isort/isort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1