Describe the bug
Currently a misleading warning is logged when a progress callback raises an exception.
It states that it "Failed to validate notification".
I've already issued a PR to fix it: #775
To Reproduce
asyncdefprogress_cb(progress: float, total: float|None, message: str|None):
raiseRuntimeError("Cannot divide by zero.")
result=awaitself.session.call_tool(
tool_name,
arguments,
progress_callback=progress_cb,
)Expected behavior
Indicate to the developer that his callback threw an exception.
Describe the bug
Currently a misleading warning is logged when a progress callback raises an exception.
It states that it "Failed to validate notification".
I've already issued a PR to fix it: #775
To Reproduce
Expected behavior
Indicate to the developer that his callback threw an exception.