Skip to content

Commit 23a7d7f

Browse files
committed
update error message
1 parent 629f41d commit 23a7d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shelloracle/providers/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ async def generate(self, prompt: str) -> AsyncIterator[str]:
3232
if chunk.choices[0].delta.content is not None:
3333
yield chunk.choices[0].delta.content
3434
except:
35-
...
35+
logging.getLogger(__name__).exception("no choices")
3636
except APIError as e:
3737
msg = f"Something went wrong while querying OpenAI: {e}"
3838
raise ProviderError(msg) from e

0 commit comments

Comments
 (0)