~ruther/qmk_firmware

076d8babbbd762f9a316a26144d966238b9b71cc — fauxpark 5 years ago c54d2cb
[CLI] `qmk docs` graceful shutdown on Ctrl+C (#6989)

1 files changed, 6 insertions(+), 1 deletions(-)

M lib/python/qmk/cli/docs.py
M lib/python/qmk/cli/docs.py => lib/python/qmk/cli/docs.py +6 -1
@@ 19,4 19,9 @@ def docs(cli):
        cli.log.info("Serving QMK docs at http://localhost:%d/", cli.config.docs.port)
        cli.log.info("Press Control+C to exit.")

        httpd.serve_forever()
        try:
            httpd.serve_forever()
        except KeyboardInterrupt:
            cli.log.info("Stopping HTTP server...")
        finally:
            httpd.shutdown()