diff --git a/src/structlog/_frames.py b/src/structlog/_frames.py index be1ffa59..1eb8e7c9 100644 --- a/src/structlog/_frames.py +++ b/src/structlog/_frames.py @@ -15,6 +15,7 @@ from .contextvars import _ASYNC_CALLING_STACK from .typing import ExcInfo + def is_missing_exc_info(exc_info: ExcInfo) -> bool: """ Return True if exc_info is the missing value. diff --git a/src/structlog/tracebacks.py b/src/structlog/tracebacks.py index d6a650d6..2392b342 100644 --- a/src/structlog/tracebacks.py +++ b/src/structlog/tracebacks.py @@ -24,6 +24,7 @@ from ._frames import is_missing_exc_info + try: import rich import rich.pretty