Skip to content

Commit 1b01dcb

Browse files
Update core/src/main/java/com/google/adk/tools/mcp/McpAsyncTool.java
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 92d53ed commit 1b01dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/adk/tools/mcp/McpAsyncTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public Schema toGeminiSchema(JsonSchema openApiSchema) {
110110
String jsonString = objectMapper.valueToTree(openApiSchema).toString();
111111
try {
112112
return Schema.fromJson(jsonString);
113-
} catch (Throwable e) {
113+
} catch (Exception e) {
114114
throw new McpToolSchemaException(String.format("MCP async tool:%s, schema:%s failed to convert openApiSchema to GeminiSchema.", this.name(), jsonString), e);
115115
}
116116
}

0 commit comments

Comments
 (0)