default agent search on

This commit is contained in:
pablonyx
2025-02-19 17:20:18 -08:00
parent ad4efb5f20
commit 57cf7d9fac
8 changed files with 23 additions and 21 deletions

View File

@@ -195,11 +195,16 @@ def validate_ccpair_for_user(
db_session,
get_editable=False,
)
if not credential:
raise ValueError("Credential not found")
if not connector:
raise ValueError("Connector not found")
if connector.source == DocumentSource.INGESTION_API:
return
if not credential:
raise ValueError("Credential not found")
try:
runnable_connector = instantiate_connector(
db_session=db_session,