Skip to content

Commit 0bcb072

Browse files
author
Your Name
committed
cli-29: fix acompletion keyboardinterrupt exception
1 parent a24e530 commit 0bcb072

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cecli/tui/worker.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ def stop(self):
181181
except RuntimeError:
182182
# Loop may already be closed
183183
pass
184-
184+
except KeyboardInterrupt:
185+
# An interrupt was not caught within the async run loop.
186+
# We'll just pass to allow the thread to exit gracefully
187+
# without a scary traceback.
188+
pass
185189
self.interrupt()
186190

187191
# Wait for thread to finish

0 commit comments

Comments
 (0)