Changed code to not use the OSError aliases (IOError, EnvironmentError, socket.error and select.error) anymore.

Sun, 22 Nov 2020 16:12:21 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 22 Nov 2020 16:12:21 +0100
changeset 93
5415a36586c7
parent 92
d0f1d0d377e5
child 94
45d226917534

Changed code to not use the OSError aliases (IOError, EnvironmentError, socket.error and select.error) anymore.

PyLint/PyLintExecDialog.py file | annotate | diff | comparison | revisions
diff -r d0f1d0d377e5 -r 5415a36586c7 PyLint/PyLintExecDialog.py
--- a/PyLint/PyLintExecDialog.py	Fri Oct 16 17:45:25 2020 +0200
+++ b/PyLint/PyLintExecDialog.py	Sun Nov 22 16:12:21 2020 +0100
@@ -382,7 +382,7 @@
             with open(self.reportFile, 'wb') as f:
                 f.write(codecs.BOM_UTF8)
                 f.write(self.buf.encode('utf-8'))
-        except IOError as why:
+        except OSError as why:
             E5MessageBox.critical(
                 self, self.tr('PyLint Report'),
                 self.tr('<p>The PyLint report file <b>{0}</b> could not'

eric ide

mercurial