From 70f3cb646b456ba98bf3ae139c51111e7fa2cd74 Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 03:21:28 +0100 Subject: [PATCH] fix(plugins): Add else clause for when directory doesn't exist in removeFiles Also handle case where directory is already removed (doesn't exist) --- pluginInstaller/pluginInstaller.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pluginInstaller/pluginInstaller.py b/pluginInstaller/pluginInstaller.py index c6f5739a6..18947cd00 100644 --- a/pluginInstaller/pluginInstaller.py +++ b/pluginInstaller/pluginInstaller.py @@ -374,6 +374,9 @@ class pluginInstaller: return except Exception as e: raise Exception(f"All removal methods failed. Last error: {str(e)}") + else: + # Directory doesn't exist - already removed + pluginInstaller.stdOut(f'Plugin directory does not exist (already removed): {pluginName}') except Exception as e: pluginInstaller.stdOut(f"Error removing plugin files: {str(e)}")