bot: graceful exception catch

This commit is contained in:
dece 2021-06-11 11:28:22 +02:00
parent 19e5408ba2
commit 5ca4a25b1f

View file

@ -114,6 +114,8 @@ class Bot(irc.client.SimpleIRCClient, Logger):
try: try:
self.start() self.start()
except KeyboardInterrupt: except KeyboardInterrupt:
self.log_i("Caught keyboard interrupt.")
finally:
self.log_i("Stopping Edmond.") self.log_i("Stopping Edmond.")
self.__save_storage() self.__save_storage()