diff --git a/backend/onyx/connectors/linear/connector.py b/backend/onyx/connectors/linear/connector.py index 5d1c01ae991..0bd10e91f77 100644 --- a/backend/onyx/connectors/linear/connector.py +++ b/backend/onyx/connectors/linear/connector.py @@ -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