mirror of
https://github.com/langgenius/dify.git
synced 2026-04-25 05:06:15 +08:00
Refactor WorkflowService to handle missing default credentials gracefully
This commit is contained in:
@ -450,7 +450,8 @@ class WorkflowService:
|
||||
)
|
||||
|
||||
if not default_provider:
|
||||
raise ValueError("No default credential found")
|
||||
# plugin does not require credentials, skip
|
||||
return
|
||||
|
||||
# Check credential policy compliance using the default credential ID
|
||||
from core.helper.credential_utils import check_credential_policy_compliance
|
||||
|
||||
Reference in New Issue
Block a user