log run exceptions

pull/15/head
Bruce MacDonald 2024-03-02 23:58:44 -05:00
parent af6d4c2711
commit c174e9aa66
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ class Discollama:
def run(self, token):
try:
self.discord.run(token)
except Exception:
except Exception as e:
logging.exception("An error occurred while running the bot: %s", e)
self.redis.close()