mirror of
https://github.com/getpelican/pelican.git
synced 2026-05-30 16:16:55 +02:00
Apply suggestion from @Dreamsorcerer
This commit is contained in:
parent
68d82ede3e
commit
459319ebde
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class FatalLogger(LimitLogger):
|
|||
# Avoid raising RuntimeError below if no log was emitted.
|
||||
return
|
||||
|
||||
# __init__.py:main() catches this exception then does it's own critical log.
|
||||
# __init__.py:main() catches this exception then does its 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