Skip to content

Commit 3369ab1

Browse files
committed
Also catch cancelled in updateui
1 parent 2c2bdac commit 3369ab1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ui/prompt_ui.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ async def update_ui(self):
481481
if self.app and not self.app.invalidated:
482482
self.app.invalidate()
483483
await asyncio.sleep(0.25)
484+
except concurrent.futures._base.CancelledError as e:
485+
log.warn(f"Cancelled error in UI: {type(e)}: {e}")
484486
except Exception as e:
485487
log.warn(f"Exception in UI update_ui {type(e)}: {e}")
486488
raise e

0 commit comments

Comments
 (0)