aind_behavior_curriculum.curriculum.try_materialize_non_deserializable_callable_error

aind_behavior_curriculum.curriculum.try_materialize_non_deserializable_callable_error(value: _NonDeserializableCallable) Exception | None[source]

Attempts to materialize the error from a non-deserializable callable.

Parameters:

value (_NonDeserializableCallable) – The value to check and potentially extract the error from.

Returns:

The error associated with the non-deserializable

callable if it exists, otherwise None.

Return type:

Optional[Exception]