Update plugin_manager.py

This commit is contained in:
Vishal 2024-04-29 20:29:30 +05:30 committed by GitHub
parent 6b5aae57ac
commit e7646c9dc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2080,7 +2080,11 @@ class PluginManagerWindow(bui.Window):
return
try:
category_plugins = await self.plugin_manager.categories[category if category != 'Installed' else 'All'].get_plugins()
if self.plugin_manager.categories != {}:
if self.plugin_manager.categories['All'] is not None:
category_plugins = await self.plugin_manager.categories[category if category != 'Installed' else 'All'].get_plugins()
else: return
else: return
except (KeyError, AttributeError):
no_internet_text = "Make sure you are connected\n to the Internet and try again."
if bui.textwidget(query=self._plugin_manager_status_text) != no_internet_text: