--- a/PluginRefactoringRope.py Sat Nov 21 16:41:12 2020 +0100 +++ b/PluginRefactoringRope.py Sun Nov 22 16:25:22 2020 +0100 @@ -458,7 +458,7 @@ if filename and os.path.exists(filename): try: self.__oldEditorText = Utilities.readEncodedFile(filename)[0] - except IOError: + except OSError: self.__oldEditorText = "" self.__savedEditorName = filename else: