--- 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'