Skip to content

Commit

Permalink
[#49] add OpenAIError log
Browse files Browse the repository at this point in the history
  • Loading branch information
jekalmin authored and jekalmin committed Dec 14, 2023
1 parent 9df2726 commit e1b4c1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/extended_openai_conversation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ async def async_process(
try:
response = await self.query(user_input, messages, exposed_entities, 0)
except error.OpenAIError as err:
_LOGGER.error(err)
intent_response = intent.IntentResponse(language=user_input.language)
intent_response.async_set_error(
intent.IntentResponseErrorCode.UNKNOWN,
Expand Down

0 comments on commit e1b4c1c

Please sign in to comment.