From c797648f9116bcfe50ac5abff196f6c8eefa012a Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 24 Apr 2014 12:47:54 +0530 Subject: [PATCH] check if app in apps.txt before installing --- frappe/installer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/installer.py b/frappe/installer.py index 66cb8cee0c..6aa6ce240c 100755 --- a/frappe/installer.py +++ b/frappe/installer.py @@ -89,6 +89,9 @@ def install_app(name, verbose=False, set_as_patched=True): app_hooks = frappe.get_hooks(app_name=name) installed_apps = frappe.get_installed_apps() + if name not in frappe.get_all_apps(with_frappe=True): + raise Exception("App not in apps.txt") + if name in installed_apps: print "App Already Installed" frappe.msgprint(_("App Already Installed"))