Skip to content

Commit

Permalink
name variable correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuo-danswer committed Nov 23, 2024
1 parent 933aa7a commit 7afb27a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/danswer/connectors/confluence/onyx_confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def _validate_connector_configuration(
wiki_base: str,
) -> None:
# test connection with direct client, no retries
confluence_client_without_retries = Confluence(
confluence_client_with_minimal_retries = Confluence(
api_version="cloud" if is_cloud else "latest",
url=wiki_base.rstrip("/"),
username=credentials["confluence_username"] if is_cloud else None,
Expand All @@ -304,7 +304,7 @@ def _validate_connector_configuration(
max_backoff_retries=6,
max_backoff_seconds=10,
)
spaces = confluence_client_without_retries.get_all_spaces(limit=1)
spaces = confluence_client_with_minimal_retries.get_all_spaces(limit=1)

if not spaces:
raise RuntimeError(
Expand Down

0 comments on commit 7afb27a

Please sign in to comment.