MCPcopy Create free account
hub / github.com/crewAIInc/crewAI / raised_from

Function raised_from

lib/cli/tests/test_run_usage.py:571–576  ·  view source on GitHub ↗

ERROR as `raise ERROR from CAUSE` leaves it.

(error: BaseException, cause: BaseException | None)

Source from the content-addressed store, hash-verified

569
570
571def raised_from(error: BaseException, cause: BaseException | None) -> BaseException:
572 """ERROR as `raise ERROR from CAUSE` leaves it."""
573 try:
574 raise error from cause
575 except BaseException as raised:
576 return raised
577
578
579def raised_while_handling(error: BaseException, context: BaseException) -> BaseException:

Calls

no outgoing calls

Tested by

no test coverage detected