Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Jan 25, 2025
1 parent d15b132 commit 41e6688
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tinylogging/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 41e6688

Please sign in to comment.