Mon, 06 Jun 2022 11:22:33 +0200
Fixed a bug in the Plugin Manager causing an exception when used in the standalone plugin repository window.
eric7/PluginManager/PluginManager.py | file | annotate | diff | comparison | revisions |
--- a/eric7/PluginManager/PluginManager.py Mon Jun 06 11:09:43 2022 +0200 +++ b/eric7/PluginManager/PluginManager.py Mon Jun 06 11:22:33 2022 +0200 @@ -1240,7 +1240,10 @@ # 3 = monthly # 4 = always - if period == 0 or not self.__ui.isOnline(): + if ( + period == 0 or + (self.__ui is not None and not self.__ui.isOnline()) + ): return elif period in [1, 2, 3]: @@ -1330,7 +1333,7 @@ return if self.__updateAvailable: - self.__ui.activatePluginRepositoryViewer() + self.__ui and self.__ui.activatePluginRepositoryViewer() else: self.pluginRepositoryFileDownloaded.emit()