Catch KeyboardInterrupt cleanly

This commit is contained in:
2021-01-10 15:37:10 +01:00
parent a1479ed62f
commit b4a09497b8

View File

@ -99,7 +99,11 @@ class Bot(ClientXMPP):
def run(self):
"""Run the bot."""
self.connect()
self.process()
try:
self.process()
except KeyboardInterrupt:
pass
def reply(self, to, body, type="chat"):
"""Send a message."""