From d4b0a58b19fc243477bfc00f293a664a9c614603 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sun, 21 Oct 2018 16:43:36 -0500 Subject: [PATCH] Added logging for OreAlert crashes. Hopefully this will help find the source of all the crashes. --- api/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/bot.py b/api/bot.py index 942bbc3..2a9e2f2 100644 --- a/api/bot.py +++ b/api/bot.py @@ -290,7 +290,8 @@ class OreAlert: self.playerList.append(p) except KeyboardInterrupt: api.discord_notification("OreAlert has been stopped manually.") - except: + except Exception as e: + logger.exception("OreAlert has crashed") api.discord_notification("OreAlert has crashed!", ping=True)