Skip to content

Commit

Permalink
fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
kat-wicks authored Jun 10, 2024
1 parent 718ac31 commit 8075d12
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cleanlab_studio/cli/login/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ def login(prev_state: PreviousState, key: str) -> None:
valid_key = validate_api_key(key)
if not valid_key:
raise AuthError(
"API key is invalid. Check https://app.cleanlab.ai/upload for your current API key."
{
"code": "invalid_api_key",
"description":"API key is invalid. Check https://app.cleanlab.ai/upload for your current API key.",
},
401,
)

# save API key
Expand Down

0 comments on commit 8075d12

Please sign in to comment.