Added logging for OreAlert crashes.

Hopefully this will help find the source of all the crashes.
reminder
Joey Hines 2018-10-21 16:43:36 -05:00
parent a314e51262
commit d4b0a58b19
1 changed files with 2 additions and 1 deletions

View File

@ -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)