mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
Refactor WorkflowService to handle missing default credentials gracef… (#25960)
This commit is contained in:
parent
6453fc4973
commit
9f138ef246
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user