MCPcopy Index your code
hub / github.com/modelscope/FunASR / _get_import_errors

Function _get_import_errors

funasr/auto/auto_model.py:54–63  ·  view source on GitHub ↗

Internal: get import errors.

()

Source from the content-addressed store, hash-verified

52
53
54def _get_import_errors():
55 """Internal: get import errors."""
56 try:
57 import funasr
58 except Exception:
59 return {}
60 get_import_errors = getattr(funasr, "get_import_errors", None)
61 if get_import_errors is not None:
62 return get_import_errors()
63 return dict(getattr(funasr, "_IMPORT_ERRORS", {}))
64
65
66def _format_unregistered_component_error(component_type, component_name, registry):

Callers 1

Calls 1

get_import_errorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…