Replace "Loading..." text with the exception message if any

This commit is contained in:
Rikko 2023-06-16 00:18:04 +05:30
parent 28031eb1f7
commit 72d2d62601
3 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,9 @@
## Plugin Manager (dd-mm-yyyy)
### 0.3.5 (16-06-2023)
- Replace the "Loading..." text with the exception message in case something goes wrong.
### 0.3.4 (14-05-2023)
- Optimize new plugin detection mechanism.

View file

@ -1,6 +1,7 @@
{
"plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
"versions": {
"0.3.5": null,
"0.3.4": {
"api_version": 7,
"commit_sha": "2d74b52",

View file

@ -25,7 +25,7 @@ _env = _ba.env()
_uiscale = ba.app.ui.uiscale
PLUGIN_MANAGER_VERSION = "0.3.4"
PLUGIN_MANAGER_VERSION = "0.3.5"
REPOSITORY_URL = "https://github.com/bombsquad-community/plugin-manager"
# Current tag can be changed to "staging" or any other branch in
# plugin manager repo for testing purpose.
@ -1538,6 +1538,10 @@ class PluginManagerWindow(ba.Window):
except RuntimeError:
# User probably went back before a ba.Window could finish loading.
pass
except Exception as e:
ba.textwidget(edit=self._plugin_manager_status_text,
text=str(e))
raise
async def draw_index(self):
self.draw_search_bar()