tech-envision commited on
Commit
930ff68
·
1 Parent(s): fed605d

Handle CancelledError during tool call follow-up

Browse files
Files changed (1) hide show
  1. src/chat.py +1 -1
src/chat.py CHANGED
@@ -173,7 +173,7 @@ class ChatSession:
173
  follow_task.cancel()
174
  try:
175
  await follow_task
176
- except Exception:
177
  pass
178
  result = await exec_task
179
  messages.append(
 
173
  follow_task.cancel()
174
  try:
175
  await follow_task
176
+ except asyncio.CancelledError:
177
  pass
178
  result = await exec_task
179
  messages.append(