Sfoglia il codice sorgente

Refactor WorkflowService to handle missing default credentials gracef… (#25960)

tags/1.9.0
Xiyuan Chen 1 mese fa
parent
commit
9f138ef246
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      api/services/workflow_service.py

+ 2
- 1
api/services/workflow_service.py Vedi File

@@ -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…
Annulla
Salva