Skip to content

Commit

Permalink
quick nit
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 19, 2025
1 parent 3b92cf2 commit 6fb85d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions backend/onyx/connectors/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ def validate_ccpair_for_user(
tenant_id=tenant_id,
)
except Exception as e:
error_msg = str(e)
raise ConnectorValidationError(error_msg)
raise ConnectorValidationError(str(e))

runnable_connector.validate_connector_settings()
6 changes: 3 additions & 3 deletions backend/onyx/connectors/web/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ def extract_urls_from_sitemap(sitemap_url: str) -> list[str]:

return urls
except requests.RequestException as e:
raise RuntimeError(f"Failed to fetch sitemap from {sitemap_url}: {str(e)}")
raise RuntimeError(f"Failed to fetch sitemap from {sitemap_url}: {e}")
except ValueError as e:
raise RuntimeError(f"Error processing sitemap {sitemap_url}: {str(e)}")
raise RuntimeError(f"Error processing sitemap {sitemap_url}: {e}")
except Exception as e:
raise RuntimeError(
f"Unexpected error while processing sitemap {sitemap_url}: {str(e)}"
f"Unexpected error while processing sitemap {sitemap_url}: {e}"
)


Expand Down

0 comments on commit 6fb85d5

Please sign in to comment.