aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-05-04 22:20:54 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-05-04 22:20:54 +0200
commita2fd4e60d3b7753f6da8a1744dd5f8741bbca7c9 (patch)
tree6c9b454ff5d007e7e9c9f824880bc10a7a22fdd1
parent30f1ba104559d2b733d98346e8f772fbf20dfc3f (diff)
downloadlab-bot-a2fd4e60d3b7753f6da8a1744dd5f8741bbca7c9.tar.gz
lab-bot-a2fd4e60d3b7753f6da8a1744dd5f8741bbca7c9.zip
handle addon exceptions more gracefully
-rw-r--r--labbot/bot.py2
1 files changed, 2 insertions, 0 deletions
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)