robustness.

This commit is contained in:
François Dausseur
2025-04-30 17:39:35 +02:00
parent fffba77497
commit de04b2b3b9
2 changed files with 6 additions and 2 deletions

View File

@@ -1 +1 @@
0.4
0.5

View File

@@ -278,7 +278,11 @@ class CommandsLoader:
obj = None
for n, c in members:
if issubclass(c, Commands) and (n != "Commands"):
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