Browse Source

[minor] do not throw an exception if user tries to complete setup again

version-14
Rushabh Mehta 8 years ago
parent
commit
9610e32d08
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      frappe/desk/page/setup_wizard/setup_wizard.py

+ 4
- 1
frappe/desk/page/setup_wizard/setup_wizard.py View File

@@ -18,7 +18,10 @@ def setup_complete(args):
and clears cache. If wizard breaks, calls `setup_wizard_exception` hook"""

if cint(frappe.db.get_single_value('System Settings', 'setup_complete')):
frappe.throw(_('Setup already complete'))
# do not throw an exception if setup is already complete
# let the user continue to desk
return
#frappe.throw(_('Setup already complete'))

args = process_args(args)



Loading…
Cancel
Save