From a4e4b8ba26388e40a7ab018410f3a5e1dc959990 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 12 Jun 2020 15:54:24 +0530 Subject: [PATCH] fix: catch all exception in get_config --- frappe/utils/dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frappe/utils/dashboard.py b/frappe/utils/dashboard.py index c1884d62fb..6cfee6a08e 100644 --- a/frappe/utils/dashboard.py +++ b/frappe/utils/dashboard.py @@ -116,5 +116,7 @@ def get_config(app, module): if hasattr(module_dashboards, 'get_data'): return frappe._dict(module_dashboards.get_data()) return None - except ImportError: + except Exception as e: + print(_("Failed to import dashboard fixtures for module {module}").format(module=module)) + frappe.log_error(e, _("Dashboard Fixture Import Error")) return None