2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-22 22:58:31 +00:00

fix: don't allow uninstall frappe...

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-08-30 18:08:51 +05:30
parent e88fbc47c9
commit 1ab3763fd6
No known key found for this signature in database
GPG Key ID: 9DCC61E211BF645F

View File

@ -10,7 +10,7 @@ from typing import List, MutableSequence, TYPE_CHECKING, Union
# imports - module imports
import bench
from bench.exceptions import AppNotInstalledError, InvalidRemoteException
from bench.exceptions import AppNotInstalledError, InvalidRemoteException, ValidationError
from bench.config.common_site_config import setup_config
from bench.utils import (
UNSET_ARG,
@ -122,6 +122,8 @@ class Bench(Base, Validator):
self.apps.sync()
def uninstall(self, app, no_backup=False, force=False):
if app == "frappe":
raise ValidationError("You cannot uninstall the app `frappe`")
from bench.app import App
if not force: