From 0f1e6ac949a09d190c5372e3581cfe526f92c6e2 Mon Sep 17 00:00:00 2001 From: will Date: Mon, 19 Aug 2024 17:55:54 +0100 Subject: [PATCH] Minor bugfix Fixed while True Keyboard Interupt minor bug --- clock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clock.py b/clock.py index a7a1ea8..bf47617 100755 --- a/clock.py +++ b/clock.py @@ -164,7 +164,7 @@ if __name__ == "__main__": while True: pass httpd = HTTPServer(('localhost', 8000), SimpleHTTPRequestHandler) httpd.serve_forever() - except: + except KeyboardInterrupt: try: sys.exit() except SystemExit: -- 2.39.2