Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cecli/tui/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def _cleanup_loop(self):
)
except RuntimeError:
pass # Loop already stopped
except KeyboardInterrupt:
pass # Loop already stopped

self.loop.close()
except Exception:
Expand Down Expand Up @@ -186,6 +188,11 @@ def stop(self):
# We'll just pass to allow the thread to exit gracefully
# without a scary traceback.
pass
except KeyboardInterrupt:
# An interrupt was not caught within the async run loop.
# We'll just pass to allow the thread to exit gracefully
# without a scary traceback.
pass
self.interrupt()

# Wait for thread to finish
Expand Down
Loading