Skip to main content
By default, Weave’s .call() method captures exceptions and stores them in call.exception instead of raising them. This is expected behavior. If you need exceptions to be raised during execution, set the __should_raise parameter:
result, call = my_op.call(__should_raise=True)
If you don’t set __should_raise=True, Weave silently captures and stores any exception that occurs during the op, so you must check call.exception to inspect the error:
result, call = my_op.call()
if call.exception:
    print(f"Op failed with: {call.exception}")
For more information, see Limits and expected behaviors.
Trace Data