mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 10:19:04 +01:00
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:
@@ -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)}")
|
||||
|
||||
Reference in New Issue
Block a user