--- a/eric7/QScintilla/APIsManager.py Mon Jun 27 17:13:05 2022 +0200 +++ b/eric7/QScintilla/APIsManager.py Mon Jun 27 18:05:36 2022 +0200 @@ -176,8 +176,10 @@ if self.__apifiles != apifiles: needsPreparation = True for apifile in apifiles: + apifilePath = pathlib.Path(apifile) if ( - pathlib.Path(apifile).stat().st_mtime > + apifilePath.exists() and + apifilePath.stat().st_mtime > preparedAPIsModified ): needsPreparation = True