mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-27 15:51:33 +02:00
Rename McpError to MCPError and convert construction sites
This commit is contained in:
parent
2f49f9f7c0
commit
fdac9f9f2e
39 changed files with 217 additions and 281 deletions
|
|
@ -4,7 +4,7 @@ import time
|
|||
|
||||
import anyio
|
||||
import pytest
|
||||
from mcp.shared.exceptions import McpError
|
||||
from mcp.shared.exceptions import MCPError
|
||||
from mcp_types import TextContent
|
||||
|
||||
from fastmcp import FastMCP
|
||||
|
|
@ -188,5 +188,5 @@ class TestToolTimeout:
|
|||
return "never"
|
||||
|
||||
# TimeoutError should be caught and converted to ToolError
|
||||
with pytest.raises((ToolError, McpError)):
|
||||
with pytest.raises((ToolError, MCPError)):
|
||||
await mcp.call_tool("times_out")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue