catch KeyboardInterrupt

This commit is contained in:
Davide Alberani 2016-07-10 14:12:58 +02:00
parent 86e956c109
commit ed99d56be0

View file

@ -1051,4 +1051,7 @@ def run():
if __name__ == '__main__':
run()
try:
run()
except KeyboardInterrupt:
print('Stop server')