瀏覽代碼

Merge pull request #2285 from rmehta/setup-wizard-fix

[minor] do not throw an exception if user tries to complete setup again
version-14
Nabin Hait 8 年之前
committed by GitHub
父節點
當前提交
a73e5df9ba
共有 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"""

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…
取消
儲存