Update agent/canvas.py

This commit is contained in:
Kevin Hu 2025-11-28 19:08:20 +08:00 committed by GitHub
parent 7e506dd63b
commit e6ef08ff7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -471,7 +471,7 @@ class Canvas(Graph):
try:
for item in gen:
loop.call_soon_threadsafe(q.put_nowait, item)
except Exception as e:
except Exception:
logging.exception("Error in generator producer")
finally:
loop.call_soon_threadsafe(q.put_nowait, None)