Skip to content

Commit d366207

Browse files
author
ZeuZ Agentic Implement
committed
Implement TASK-1435: Handle Ctrl C gracefully
1 parent fcdc77e commit d366207

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

node_cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,4 +1423,7 @@ async def main():
14231423
await asyncio.sleep(1)
14241424

14251425

1426-
asyncio.run(main())
1426+
try:
1427+
asyncio.run(main())
1428+
except KeyboardInterrupt:
1429+
signal_handler(signal.SIGINT, None)

0 commit comments

Comments
 (0)