catch KeyboardInterrupt
This commit is contained in:
parent
86e956c109
commit
ed99d56be0
1 changed files with 4 additions and 1 deletions
|
@ -1051,4 +1051,7 @@ def run():
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run()
|
try:
|
||||||
|
run()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print('Stop server')
|
||||||
|
|
Loading…
Reference in a new issue