Error Handling

This commit is contained in:
Vishal 2022-08-07 02:05:48 +05:30 committed by GitHub
parent 5d99e56b06
commit e81b05b279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -598,15 +598,20 @@ class PluginManagerWindow(ba.Window, PluginManager):
self.categories["All"] = CategoryAll(plugins=all_plugins)
async def plugin_index(self):
try:
index = await super().get_index()
await asyncio.gather(
self.draw_refresh_icon(),
self.draw_settings_icon(),
self.setup_plugin_categories(index),
)
self._loading_text.delete()
await self.select_category("All")
await self.draw_search_bar()
self._loading_text.delete()
except Exception:
ba.textwidget(edit=self._loading_text,
text='Error')
print("Plugin Manager could not load due to a few Technical Issues.")
async def draw_category_selection_button(self, label=None):
# v = (self._height - 75) if _uiscale is ba.UIScale.SMALL else (self._height - 105)