Catch uninstall plugin

This commit is contained in:
TrainDoctor
2022-07-02 17:09:21 -07:00
parent 58b2c4208d
commit 675e667a9e
+4 -1
View File
@@ -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}")