mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 23:45:05 +02:00
Move FatalException to errors.py
This commit is contained in:
parent
19c1e3ac6f
commit
f6faacabb0
5 changed files with 13 additions and 11 deletions
|
|
@ -32,12 +32,6 @@ def enable_logging(name: str = "PFERD", level: int = logging.INFO) -> None:
|
|||
logger.propagate = False
|
||||
|
||||
|
||||
class FatalException(Exception):
|
||||
"""
|
||||
A fatal exception occurred. Recovery is not possible.
|
||||
"""
|
||||
|
||||
|
||||
class RichLoggingHandler(logging.Handler):
|
||||
"""
|
||||
A logging handler that uses rich for highlighting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue