fix(plugins): Add else clause for when directory doesn't exist in removeFiles

Also handle case where directory is already removed (doesn't exist)
This commit is contained in:
master3395
2026-01-26 03:21:28 +01:00
parent e92f3a7f17
commit 70f3cb646b

View File

@@ -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)}")