Handle KeyboardInterrupt in the main loop

This commit is contained in:
Alexander Kukushkin
2015-06-01 12:02:46 +02:00
parent 939254021e
commit 8c4e547d7a
+2
View File
@@ -87,6 +87,8 @@ def main():
try:
governor.initialize()
governor.run()
except KeyboardInterrupt:
pass
finally:
governor.touch_member(300) # schedule member removal
governor.postgresql.stop()