Apply suggestion from @Dreamsorcerer

This commit is contained in:
Sam Bull 2026-04-03 15:26:57 +01:00 committed by GitHub
commit 459319ebde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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