Minor fix in setup wizard

This commit is contained in:
Nabin Hait 2014-10-13 11:32:41 +05:30
parent bc8b20ae3c
commit 3d3f0bcf54

View File

@ -78,9 +78,10 @@ def setup_account(args=None):
frappe.db.commit()
except:
traceback = frappe.get_traceback()
for hook in frappe.get_hooks("setup_wizard_exception"):
frappe.get_attr(hook)(traceback, args)
if args:
traceback = frappe.get_traceback()
for hook in frappe.get_hooks("setup_wizard_exception"):
frappe.get_attr(hook)(traceback, args)
raise