fix: catch all exception in get_config

This commit is contained in:
Shivam Mishra 2020-06-12 15:54:24 +05:30
parent 2f14adb0b5
commit a4e4b8ba26

View file

@ -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