Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Dec 12, 2024
1 parent 7b9ccad commit d516b8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/danswer/connectors/web/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ def __init__(
self.to_visit_list = extract_urls_from_sitemap(_ensure_valid_url(base_url))

elif web_connector_type == WEB_CONNECTOR_VALID_SETTINGS.UPLOAD:
# Explicitly check if running in multi-tenant mode to prevent potential security risks
if MULTI_TENANT:
raise ValueError("Upload connector is not supported in the cloud")
raise ValueError(
"Upload input for web connector is not supported in cloud environments"
)

logger.warning(
"This is not a UI supported Web Connector flow, "
Expand Down

0 comments on commit d516b8f

Please sign in to comment.