From 85510ca2d9eec528b4b8f1e9b18e53fd7307da51 Mon Sep 17 00:00:00 2001 From: Slfhstd Date: Tue, 24 Feb 2026 22:08:02 +0000 Subject: [PATCH] 91 --- Bot/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bot/main.py b/Bot/main.py index a342751..3a4a283 100644 --- a/Bot/main.py +++ b/Bot/main.py @@ -88,7 +88,8 @@ sys.modules["config"] = config_mod if spec.loader: spec.loader.exec_module(config_mod) # type: ignore cfg = config_mod.config -TEMPLATE = config_mod.TEMPLATE +# older config files may not define TEMPLATE (previous bug); fall back +TEMPLATE = getattr(config_mod, 'TEMPLATE', DEFAULT_TEMPLATE) posts = Posts('deleted_posts', config_dir) logger = Logger(1)