bot: forgot to exit after received SIGTERM…

This commit is contained in:
dece 2022-05-16 12:02:29 +02:00
parent 6841b01e8d
commit 3a85e5a23c

View file

@ -179,6 +179,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
def handle_sigterm(self, *args):
"""Handle SIGTERM (keyboard interrupt, systemd stop, etc)."""
self.cleanup()
exit("Exiting after received SIGTERM.")
def cleanup(self):
"""Save the storage file and close the connection. Run only once."""