mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 10:59:12 +08:00
fix: add specific exceptions
This commit is contained in:
parent
f589397f25
commit
6ee7ca1890
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user