diff options
Diffstat (limited to 'isort')
-rw-r--r-- | isort/__init__.py | 2 | ||||
-rw-r--r-- | isort/isort.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/isort/__init__.py b/isort/__init__.py index 581a6ddb..8d4a047b 100644 --- a/isort/__init__.py +++ b/isort/__init__.py @@ -25,4 +25,4 @@ from __future__ import absolute_import, division, print_function, unicode_litera from . import settings # noqa: F401 from .isort import SortImports # noqa: F401 -__version__ = "4.3.19" +__version__ = "4.3.20" 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() |