mirror of
https://github.com/langgenius/dify.git
synced 2026-04-13 14:48:11 +08:00
Refactor WorkflowService to handle missing default credentials gracefully
This commit is contained in:
parent
39a0b89b9a
commit
d3ac5b1dd8
@ -452,7 +452,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