diff --git a/api/core/tools/utils/parser.py b/api/core/tools/utils/parser.py index 06bbf92bde..40d3eb9396 100644 --- a/api/core/tools/utils/parser.py +++ b/api/core/tools/utils/parser.py @@ -283,7 +283,7 @@ class ApiBasedToolSchemaParser: api = openai_plugin["api"] api_url = api["url"] api_type = api["type"] - except: + except JSONDecodeError: raise ToolProviderNotFoundError("Invalid openai plugin json.") if api_type != "openapi":