From 68d82ede3e853b04938bded2b78d93f03580cc57 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Fri, 26 Dec 2025 14:20:20 +0000 Subject: [PATCH] Update log.py --- pelican/log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pelican/log.py b/pelican/log.py index 7d0f1b39..842809fd 100644 --- a/pelican/log.py +++ b/pelican/log.py @@ -104,7 +104,9 @@ class FatalLogger(LimitLogger): # Avoid raising RuntimeError below if no log was emitted. return - if level >= FatalLogger.fatal_lvl: + # __init__.py:main() catches this exception then does it's own critical log. + # We need to avoid throwing the exception a second time here. + if level >= FatalLogger.fatal_lvl and level != logging.CRITICAL: raise RuntimeError("Warning or error encountered")