Skip to content

Commit

Permalink
Update src/neptune_api/client.py
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Godlewski <krzysztof.godlewski@neptune.ai>
  • Loading branch information
PatrykGala and kgodlewski authored Dec 20, 2024
1 parent 8b43472 commit dfee014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neptune_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def __init__(

def _refresh_existing_token(self) -> OAuthToken:
if self._token is None:
raise ValueError("Token must not be None")
raise ValueError("Cannot refresh an empty token")
try:
response = self._client.get_httpx_client().post(
url=self._token_refreshing_endpoint,
Expand Down

0 comments on commit dfee014

Please sign in to comment.