fix: Update message

Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
Faris Ansari 2020-07-08 12:06:28 +05:30 committed by GitHub
parent f3a6e30e6a
commit 0a06580e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,9 +30,7 @@ def after_install():
def check_setup_wizard_not_completed():
if frappe.db.get_default('desktop:home_page') != 'setup-wizard':
message = """Cannot install ERPNext.
ERPNext can only be installed on a fresh site where the setup wizard is not completed.
message = """ERPNext can only be installed on a fresh site where the setup wizard is not completed.
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall"""
frappe.throw(message, exc=frappe.IncompatibleApp)
@ -105,4 +103,3 @@ def add_company_to_session_defaults():
"ref_doctype": "Company"
})
settings.save()