Skip to content

Commit

Permalink
Remove API key length/format checks from _validate_api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie256 committed Jan 9, 2025
1 parent 5f45d5f commit d688907
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/whylogs/api/whylabs/session/whylabs_client_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ def __call__(self, config: Configuration) -> None:
def _validate_api_key(self, api_key: Optional[str]) -> str:
if api_key is None:
raise ValueError("Missing API key. Set it via WHYLABS_API_KEY environment variable or as an api_key option")
if len(api_key) < 12:
raise ValueError("API key too short")
if api_key[10] != ".":
raise ValueError("Invalid format. Expecting a dot at an index 10")
return api_key[:10]


Expand Down

0 comments on commit d688907

Please sign in to comment.