Skip to content

Commit

Permalink
adjsut utils
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Dec 13, 2023
1 parent a1066ca commit c7f4a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jupyter-ai/jupyter_ai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class LLMErrorUtilBase:
@staticmethod
def is_api_key_exc(e: Exception):
def is_api_key_exc(_: Exception):
"""
Determine if the exception is an API key error. Should be implemented by subclasses.
"""
Expand Down Expand Up @@ -36,7 +36,7 @@ def is_api_key_exc(e: Exception):

class AnthropicErrorUtility(LLMErrorUtilBase):
@staticmethod
def is_api_key_exc(e):
def is_api_key_exc(e: Exception):
"""
Determine if the exception is an Anthropic API key error.
"""
Expand Down

0 comments on commit c7f4a6d

Please sign in to comment.