Capture KeyboardInterrupt in nntp-tiny-server
This commit is contained in:
parent
bb42ef03b0
commit
3bbc5717d9
1 changed files with 4 additions and 1 deletions
|
@ -20,4 +20,7 @@ server = Server(config)
|
|||
if args.daemon:
|
||||
Daemon.init(config)
|
||||
|
||||
server.run()
|
||||
try:
|
||||
server.run()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue