From 3bbc5717d903f81d1f347c1155d43bf80c296a78 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 5 Dec 2024 00:18:23 -0500 Subject: [PATCH] Capture KeyboardInterrupt in nntp-tiny-server --- bin/nntp-tiny-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/nntp-tiny-server b/bin/nntp-tiny-server index 6bc8d91..3a2b37e 100755 --- a/bin/nntp-tiny-server +++ b/bin/nntp-tiny-server @@ -20,4 +20,7 @@ server = Server(config) if args.daemon: Daemon.init(config) -server.run() +try: + server.run() +except KeyboardInterrupt: + pass