From 41e66887da0071e8025ce58778289f9b0a9b0d7c Mon Sep 17 00:00:00 2001 From: Hamlet Date: Sat, 25 Jan 2025 13:33:37 +0400 Subject: [PATCH] . --- src/tinylogging/record.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tinylogging/record.py b/src/tinylogging/record.py index 3335b0b..dff742a 100644 --- a/src/tinylogging/record.py +++ b/src/tinylogging/record.py @@ -48,7 +48,11 @@ def relpath(self) -> str: return os.path.relpath(self.filename) def __post_init__(self) -> None: - """Initializes additional attributes after the dataclass is created.""" + """Initializes additional attributes after the dataclass is created. + + Raises: + RuntimeError: If the stack frame cannot be retrieved. + """ self.time = datetime.now() depth = self._get_stack_index()