diff options
| author | TrainDoctor <traindoctor@protonmail.com> | 2022-07-02 17:09:21 -0700 |
|---|---|---|
| committer | TrainDoctor <traindoctor@protonmail.com> | 2022-07-02 17:09:21 -0700 |
| commit | 675e667a9eb363259d4a1f8f59442af8901f8304 (patch) | |
| tree | 57620f1344b1f73182fcedc5fbbe6de1de230036 /backend/browser.py | |
| parent | 58b2c4208dbd12ba17f618bf700812306b7a0cb0 (diff) | |
| download | decky-loader-675e667a9eb363259d4a1f8f59442af8901f8304.tar.gz decky-loader-675e667a9eb363259d4a1f8f59442af8901f8304.zip | |
Catch uninstall plugin
Diffstat (limited to 'backend/browser.py')
| -rw-r--r-- | backend/browser.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/browser.py b/backend/browser.py index 6e99ed20..d38d11ef 100644 --- a/backend/browser.py +++ b/backend/browser.py @@ -65,7 +65,10 @@ class PluginBrowser: return web.Response(text="Requested plugin uninstall") async def _install(self, artifact, name, version, hash): - await self.uninstall_plugin(name) + try: + await self.uninstall_plugin(name) + except: + self.log.error(f"Plugin {name} not installed, skipping uninstallation") self.log.info(f"Installing {name} (Version: {version})") async with ClientSession() as client: self.log.debug(f"Fetching {artifact}") |
