From a2fd4e60d3b7753f6da8a1744dd5f8741bbca7c9 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 4 May 2022 22:20:54 +0200 Subject: handle addon exceptions more gracefully --- labbot/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/labbot/bot.py b/labbot/bot.py index 3b41ed6..6781196 100644 --- a/labbot/bot.py +++ b/labbot/bot.py @@ -45,6 +45,8 @@ class Bot: self.addons.append(addon) except ModuleNotFoundError: log.error(f"No addon named `{addon}`") + except Exception as e: + log.exception(e) def register(self, func, *args, **kwargs) -> None: self.instance.router.register(*args, **kwargs)(func) -- cgit v1.2.3