Skip to content

Commit

Permalink
log every error handled in handle_exc
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Dec 12, 2023
1 parent 334965a commit 7b43da9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/jupyter-ai/jupyter_ai/chat_handlers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ async def handle_exc(self, e: Exception, message: HumanChatMessage):
implementation is provided, however chat handlers (subclasses) should
implement this method to provide a more helpful error response.
"""
self.log.error(e)
if self.is_api_key_exc(e):
self.handle_api_key_exc(e, message)
else:
Expand Down

0 comments on commit 7b43da9

Please sign in to comment.