mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-23 05:54:19 +02:00
Update tool.py
This commit is contained in:
parent
70598d4d7b
commit
c3054fb83e
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class Tool(BaseModel):
|
|||
if isinstance(parsed_args.get(param_name, None), str):
|
||||
try:
|
||||
parsed_args[param_name] = json.loads(parsed_args[param_name])
|
||||
except Exception:
|
||||
except json.JSONDecodeError:
|
||||
pass
|
||||
|
||||
type_adapter = get_cached_typeadapter(self.fn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue