From 675e667a9eb363259d4a1f8f59442af8901f8304 Mon Sep 17 00:00:00 2001 From: TrainDoctor Date: Sat, 2 Jul 2022 17:09:21 -0700 Subject: Catch uninstall plugin --- backend/browser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend') 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}") -- cgit v1.2.3