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) ## 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) ### 0.3.4 (14-05-2023)
- Optimize new plugin detection mechanism. - 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", "plugin_manager_url": "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugin_manager.py",
"versions": { "versions": {
"0.3.5": null,
"0.3.4": { "0.3.4": {
"api_version": 7, "api_version": 7,
"commit_sha": "2d74b52", "commit_sha": "2d74b52",
@ -98,4 +99,4 @@
"https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json" "https://github.com/bombsquad-community/plugin-manager/{content_type}/{tag}/plugins/maps.json"
], ],
"external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json" "external_source_url": "https://github.com/{repository}/{content_type}/{tag}/category.json"
} }

View file

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