eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7900
72b88fb20261
child 7924
8a96736d465e
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py	Sat Nov 21 19:31:16 2020 +0100
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py	Sun Nov 22 16:04:59 2020 +0100
@@ -241,7 +241,7 @@
         try:
             with open(fname, "w", encoding="utf-8", newline="") as f:
                 f.write(eol.join(self.contents.toPlainText().splitlines()))
-        except IOError as why:
+        except OSError as why:
             E5MessageBox.critical(
                 self, self.tr('Save Diff'),
                 self.tr(

eric ide

mercurial