]> OzVa Git service - doomsday-clock/commitdiff
Minor bugfix
authorwill <greenwoodw50@gmail.com>
Mon, 19 Aug 2024 16:55:54 +0000 (17:55 +0100)
committerwill <greenwoodw50@gmail.com>
Mon, 19 Aug 2024 16:55:54 +0000 (17:55 +0100)
Fixed while True Keyboard Interupt minor bug

clock.py

index a7a1ea804813abf391e7406f6d2788be545a5eec..bf476173641d2b0714060d573cb81f47ac1b5c58 100755 (executable)
--- 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: