bot: graceful exception catch
This commit is contained in:
parent
19e5408ba2
commit
5ca4a25b1f
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue