diff options
Diffstat (limited to 'isort/isort.py')
-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 3ab68c2d..08d18af5 100644 --- a/isort/isort.py +++ b/isort/isort.py @@ -140,7 +140,7 @@ class SortImports(object): file_.seek(0) self.file_encoding = coding_check(file_) file_.seek(0) - except io.UnsupportedOperation: + except (io.UnsupportedOperation, IOError): pass reader = codecs.getreader(self.file_encoding) file_contents = reader(file_).read() |