mirror of
https://github.com/getpelican/pelican.git
synced 2026-06-02 21:46:55 +02:00
Update log.py
This commit is contained in:
parent
9dfaf4a931
commit
68d82ede3e
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue