Update client.mdx: ClientError namespace

`ClientError` is in the `fastmcp.exceptions` namespace, not `fastmcp.client`.
This commit is contained in:
Michael J Kaye 2025-06-02 13:07:31 +00:00 committed by GitHub
commit db41238e94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -345,7 +345,7 @@ For consistent behavior across all transports, we recommend explicitly setting t
#### Error Handling
When a `call_tool` request results in an error on the server (e.g., the tool function raised an exception), the `client.call_tool()` method will raise a `fastmcp.client.ClientError`.
When a `call_tool` request results in an error on the server (e.g., the tool function raised an exception), the `client.call_tool()` method will raise a `fastmcp.exceptions.ClientError`.
```python
async def safe_call_tool():