1
0
Fork 0
forked from github/pelican

Adding a message for gracefully shutting down dev server

This commit is contained in:
Félix Delval 2013-03-19 12:15:58 +01:00
commit 66aae01493

View file

@ -22,4 +22,8 @@ except OSError as e:
print("serving at port", PORT)
httpd.serve_forever()
try:
httpd.serve_forever()
except KeyboardInterrupt as e:
print("shutting down server")
httpd.socket.close()