From 424f0c7b844868ef2bf93fbec0ef9f88ea5e3727 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 28 Jul 2015 10:36:33 +0530 Subject: [PATCH] [fix] [setup wizard] ignore fiscal year --- erpnext/setup/page/setup_wizard/setup_wizard.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/setup/page/setup_wizard/setup_wizard.py b/erpnext/setup/page/setup_wizard/setup_wizard.py index cfc8d768c9..812a9f12b7 100644 --- a/erpnext/setup/page/setup_wizard/setup_wizard.py +++ b/erpnext/setup/page/setup_wizard/setup_wizard.py @@ -14,6 +14,7 @@ from frappe.utils.nestedset import get_root_of from .default_website import website_maker import install_fixtures from .sample_data import make_sample_data +from erpnext.accounts.utils import FiscalYearError @frappe.whitelist() def setup_account(args=None): @@ -85,7 +86,10 @@ def setup_account(args=None): frappe.clear_cache() - make_sample_data() + try: + make_sample_data() + except FiscalYearError: + pass except: if args: traceback = frappe.get_traceback()