fix: handle import error explicitly
This commit is contained in:
parent
95e5cd97d2
commit
970cf01eb0
1 changed files with 2 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue