Internal: get import errors.
()
| 52 | |
| 53 | |
| 54 | def _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 | |
| 66 | def _format_unregistered_component_error(component_type, component_name, registry): |
no test coverage detected
searching dependent graphs…