avoid ugly exception

This commit is contained in:
Michael Poluektov committed 2024-08-19 17:04:57 +01:00
1 parent 9652c8f8af
commit 44966db505
1 file changed
+1 -1
+1 -1
View File
@@ -414,7 +414,7 @@ async def chat_completion_tools_handler(
content = await get_content_from_response(response)
log.debug(f"{content=}")
if content is None:
if not content:
return body, {}
result = json.loads(content)