This commit is contained in:
2026-02-24 22:08:02 +00:00
parent 86b2cb3605
commit 85510ca2d9

View File

@@ -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)