diff options
Diffstat (limited to 'lib/python/qmk')
| -rw-r--r-- | lib/python/qmk/cli/docs.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/docs.py b/lib/python/qmk/cli/docs.py index a0888ec38..b41989139 100644 --- a/lib/python/qmk/cli/docs.py +++ b/lib/python/qmk/cli/docs.py | |||
| @@ -19,4 +19,9 @@ def docs(cli): | |||
| 19 | cli.log.info("Serving QMK docs at http://localhost:%d/", cli.config.docs.port) | 19 | cli.log.info("Serving QMK docs at http://localhost:%d/", cli.config.docs.port) |
| 20 | cli.log.info("Press Control+C to exit.") | 20 | cli.log.info("Press Control+C to exit.") |
| 21 | 21 | ||
| 22 | httpd.serve_forever() | 22 | try: |
| 23 | httpd.serve_forever() | ||
| 24 | except KeyboardInterrupt: | ||
| 25 | cli.log.info("Stopping HTTP server...") | ||
| 26 | finally: | ||
| 27 | httpd.shutdown() | ||
