Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Dec 12, 2023
1 parent 487d730 commit 334965a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/jupyter-ai/jupyter_ai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def is_api_key_exc(e: Exception):
Determine if the exception is an AI21 API key error.
"""
if isinstance(e, ValueError):
# Check if the exception message contains "status code 401"
return "status code 401" in str(e)
return False

Expand Down

0 comments on commit 334965a

Please sign in to comment.