scene_synthesizer.utils.late_bind_exception
- scene_synthesizer.utils.late_bind_exception(exc)
Helper to bind exceptions to function calls, e.g. when an import fails but import is only used for specific functionality.
- Parameters:
exc (BaseException) – An exception that is raised when the returned function is called.
- Returns:
A function which when called raises the exception exc.
- Return type:
fn