fix: handle import error explicitly

This commit is contained in:
Shivam Mishra 2020-06-15 13:17:35 +05:30
parent 95e5cd97d2
commit 970cf01eb0

View file

@ -116,6 +116,8 @@ def get_config(app, module):
if hasattr(module_dashboards, 'get_data'):
return frappe._dict(module_dashboards.get_data())
return None
except ImportError:
return None
except Exception as e:
print(_("Failed to import dashboard fixtures for module {module}").format(module=module))
frappe.log_error(e, _("Dashboard Fixture Import Error"))