瀏覽代碼

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

version-14
Rushabh Mehta 8 年之前
父節點
當前提交
9610e32d08
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      frappe/desk/page/setup_wizard/setup_wizard.py

+ 4
- 1
frappe/desk/page/setup_wizard/setup_wizard.py 查看文件

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


if cint(frappe.db.get_single_value('System Settings', 'setup_complete')): 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) args = process_args(args)




Loading…
取消
儲存