Skip to content

Commit 54efc40

Browse files
1 parent 20aeb6d commit 54efc40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vllm/entrypoints/openai/tool_parsers/jamba_tool_parser.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def extract_tool_calls(
105105
content=content if
106106
(len(content) > 0 and content != " ") else None)
107107

108-
except Exception as e:
109-
logger.error("Error in extracting tool call from response %s",
110-
e)
108+
except Exception:
109+
logger.exception(
110+
"Error in extracting tool call from response.")
111111
return ExtractedToolCallInformation(tools_called=False,
112112
tool_calls=[],
113113
content=model_output)
@@ -292,8 +292,8 @@ def extract_tool_calls_streaming(
292292
self.prev_tool_call_arr = tool_call_arr
293293
return delta
294294

295-
except Exception as e:
296-
logger.error("Error trying to handle streaming tool call: %s", e)
295+
except Exception:
296+
logger.exception("Error trying to handle streaming tool call.")
297297
logger.debug(
298298
"Skipping chunk as a result of tool streaming extraction "
299299
"error")

0 commit comments

Comments
 (0)