From de04b2b3b9c6906cd915a24d86e72f8212507dbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Dausseur?= Date: Wed, 30 Apr 2025 17:39:35 +0200 Subject: [PATCH] robustness. --- VERSION | 2 +- src/appengine/__init__.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e6adf3f..ea2303b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4 \ No newline at end of file +0.5 \ No newline at end of file diff --git a/src/appengine/__init__.py b/src/appengine/__init__.py index 4020ab7..bdc7720 100644 --- a/src/appengine/__init__.py +++ b/src/appengine/__init__.py @@ -278,7 +278,11 @@ class CommandsLoader: obj = None for n, c in members: if issubclass(c, Commands) and (n != "Commands"): - obj = c(conf, self.log) + try: + obj = c(conf, self.log) + except: + self.log.error(f"The object '{c.__name__}' could not be instantiated.") + continue obj.log = self.log obj.lock = self.lock obj.stop_all_event = self.stop_event