diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-07 22:56:13 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-07 22:56:13 -0800 |
commit | f98163133d8c345982255d0f36de091f2aa744d6 (patch) | |
tree | 8a911197e79706744e71646848a78d497523a995 | |
parent | 4f4064b82260e08f1d07f2f95d31d4e0b8488290 (diff) | |
download | isort-f98163133d8c345982255d0f36de091f2aa744d6.tar.gz |
Fix logic error in skip check
-rw-r--r-- | isort/isort.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/isort.py b/isort/isort.py index c16259f3..ff3921bf 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -107,7 +107,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 io.open(file_path, encoding=file_encoding, newline='') as file_to_import_sort: try: |