Update agent/canvas.py
This commit is contained in:
parent
7e506dd63b
commit
e6ef08ff7d
1 changed files with 1 additions and 1 deletions
|
|
@ -471,7 +471,7 @@ class Canvas(Graph):
|
||||||
try:
|
try:
|
||||||
for item in gen:
|
for item in gen:
|
||||||
loop.call_soon_threadsafe(q.put_nowait, item)
|
loop.call_soon_threadsafe(q.put_nowait, item)
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logging.exception("Error in generator producer")
|
logging.exception("Error in generator producer")
|
||||||
finally:
|
finally:
|
||||||
loop.call_soon_threadsafe(q.put_nowait, None)
|
loop.call_soon_threadsafe(q.put_nowait, None)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue