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() frappe.db.commit()
except: except:
traceback = frappe.get_traceback() if args:
for hook in frappe.get_hooks("setup_wizard_exception"): traceback = frappe.get_traceback()
frappe.get_attr(hook)(traceback, args) for hook in frappe.get_hooks("setup_wizard_exception"):
frappe.get_attr(hook)(traceback, args)
raise raise