--- a/eric6/QScintilla/Exporters/ExporterPDF.py Sat Nov 21 19:31:16 2020 +0100 +++ b/eric6/QScintilla/Exporters/ExporterPDF.py Sun Nov 22 16:04:59 2020 +0100 @@ -610,7 +610,7 @@ # write required stuff and close the PDF file self.pr.endPDF() - except IOError as err: + except OSError as err: E5MessageBox.critical( self.editor, self.tr("Export source"),