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)
Without __should_raise=True, any exception that occurs during the op is silently captured and stored. 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