Skip to content

Commit

Permalink
rate limit github fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Feb 19, 2025
1 parent b9786ff commit 1758dfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/onyx/connectors/github/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from onyx.connectors.interfaces import LoadConnector
from onyx.connectors.interfaces import PollConnector
from onyx.connectors.interfaces import SecondsSinceUnixEpoch
from onyx.connectors.interfaces import UnexpectedError
from onyx.connectors.models import ConnectorMissingCredentialError
from onyx.connectors.models import Document
from onyx.connectors.models import Section
Expand Down Expand Up @@ -245,7 +246,7 @@ def validate_connector_settings(self) -> None:
test_repo.get_contents("")

except RateLimitExceededException:
raise ConnectorValidationError(
raise UnexpectedError(
"Validation failed due to GitHub rate-limits being exceeded. Please try again later."
)

Expand Down

0 comments on commit 1758dfe

Please sign in to comment.