bot: graceful exception catch
This commit is contained in:
parent
19e5408ba2
commit
5ca4a25b1f
|
@ -114,6 +114,8 @@ class Bot(irc.client.SimpleIRCClient, Logger):
|
|||
try:
|
||||
self.start()
|
||||
except KeyboardInterrupt:
|
||||
self.log_i("Caught keyboard interrupt.")
|
||||
finally:
|
||||
self.log_i("Stopping Edmond.")
|
||||
self.__save_storage()
|
||||
|
||||
|
|
Loading…
Reference in a new issue