Skip to content

Commit

Permalink
k
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhongsun96 committed Dec 31, 2024
1 parent 6bc087e commit c6aa77e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/onyx/connectors/linear/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ def load_credentials(self, credentials: dict[str, Any]) -> dict[str, Any] | None
elif "access_token" in credentials:
self.linear_api_key = "Bearer " + cast(str, credentials["access_token"])
else:
# The error is slightly different for Linear cause the failure likely happened upstream
# Could be that the refresh token expired
# May need to handle case in the future if the OAuth flow expires
raise ConnectorMissingCredentialError("Linear")

return None
Expand Down

0 comments on commit c6aa77e

Please sign in to comment.