Catch uninstall plugin

This commit is contained in:
TrainDoctor
2022-07-02 17:09:21 -07:00
parent 58b2c4208d
commit 675e667a9e
+3
View File
@@ -65,7 +65,10 @@ class PluginBrowser:
return web.Response(text="Requested plugin uninstall") return web.Response(text="Requested plugin uninstall")
async def _install(self, artifact, name, version, hash): async def _install(self, artifact, name, version, hash):
try:
await self.uninstall_plugin(name) await self.uninstall_plugin(name)
except:
self.log.error(f"Plugin {name} not installed, skipping uninstallation")
self.log.info(f"Installing {name} (Version: {version})") self.log.info(f"Installing {name} (Version: {version})")
async with ClientSession() as client: async with ClientSession() as client:
self.log.debug(f"Fetching {artifact}") self.log.debug(f"Fetching {artifact}")