diff --git a/system_monitor_overlay/server.py b/system_monitor_overlay/server.py index 6fe5c30..ac9298d 100644 --- a/system_monitor_overlay/server.py +++ b/system_monitor_overlay/server.py @@ -23,7 +23,7 @@ class SystemInfoHandler(http.server.SimpleHTTPRequestHandler): with socketserver.TCPServer(('', PORT), SystemInfoHandler) as httpd: print("serving at port", PORT) try: - httpd.serve_forever() -except KeyboardInterrupt: - print("\nShutting down server.") - httpd.shutdown() + httpd.serve_forever() + except KeyboardInterrupt: + print("\nShutting down server.") + httpd.shutdown()