diff -r f20c104c644e -r 6b6a5ad47190 CxFreeze/CxfreezeExecDialog.py --- a/CxFreeze/CxfreezeExecDialog.py Wed Oct 14 18:43:13 2020 +0200 +++ b/CxFreeze/CxfreezeExecDialog.py Sun Nov 22 16:21:31 2020 +0100 @@ -228,7 +228,7 @@ @param src source file or folder to copy. Wildcards allowed. (str) @param dst destination (str) @exception OSError raised if there is an issue writing the package - @exception IOError raised if the given source does not exist + @exception OSError raised if the given source does not exist """ # __IGNORE_WARNING__ def src2dst(srcname, base, dst): """ @@ -276,7 +276,7 @@ # check if file was found and copied if len(files) and not copied: - raise IOError( + raise OSError( errno.ENOENT, self.tr("No such file or directory: '{0}'") .format(src)) @@ -314,6 +314,6 @@ try: self.__copytree(fn, dst) self.insertPlainText.emit(self.tr('ok')) - except IOError as err: + except OSError as err: self.insertPlainText.emit( self.tr('failed: {0}').format(err.strerror))