RefactoringRope/HelpDialog.py

changeset 345
622076fd58b6
parent 341
c43844eb47b7
child 346
877cac2e8d94
--- a/RefactoringRope/HelpDialog.py	Sat Nov 21 16:41:12 2020 +0100
+++ b/RefactoringRope/HelpDialog.py	Sun Nov 22 16:25:22 2020 +0100
@@ -55,7 +55,7 @@
             with open(helpfile, "r", encoding="utf-8") as f:
                 txt = f.read()
             self.helpEdit.setPlainText(txt)
-        except IOError as err:
+        except OSError as err:
             self.helpEdit.setPlainText(
                 self.tr("Could not read file {0}.\nReason: {1}")
                     .format(helpfile, str(err)))

eric ide

mercurial