Merge pull request #10662 from scmmishra/fix-get-config

fix: catch all exception in get_config
This commit is contained in:
mergify[bot] 2020-06-13 12:28:03 +00:00 committed by GitHub
commit 02e2a3abc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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