Do not load settings which are not active (module not loaded)
Restart the bot, on heavy DB errors, with an 30 seconds delay (like: all connections terminated by DB, table_definition_cache exhausted) Fix for channel prefixing (org <-> priv)
This commit is contained in:
+1
-2
@@ -77,11 +77,10 @@ try:
|
||||
# paths to search for instances: core + module_paths
|
||||
paths = ["core"]
|
||||
paths.extend(config.module_paths)
|
||||
|
||||
# load instances
|
||||
logger.debug("Loading instances")
|
||||
Registry.load_instances(paths)
|
||||
Registry.inject_all()
|
||||
Registry.inject_all(paths)
|
||||
|
||||
# configure database
|
||||
db = Registry.get_instance("db")
|
||||
|
||||
Reference in New Issue
Block a user