Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion gpt_oss/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ async def run_tool():
try:
some_dict = json.loads(text)
_, text = some_dict.popitem()
except Exception as e:
except json.JSONDecodeError as e:
tool_output = f"Error parsing JSON: {e}"
except Exception as e:
tool_output = f"Error processing patch request: {e}"

if tool_output is None:
try:
Expand Down