Skip to content

Commit

Permalink
Add desc to ensure_not_none call in utilities.traceback (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
dycw authored Jan 9, 2025
1 parent 870682e commit 3d9b001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "0.90.9"
__version__ = "0.90.10"
3 changes: 2 additions & 1 deletion src/utilities/traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def format(self, record: LogRecord) -> str:
if record.exc_info is None:
return f"ERROR: {record.exc_info=}"
_, exc_value, _ = record.exc_info
error = get_rich_traceback(ensure_not_none(exc_value), git_ref=self._git_ref)
exc_value = ensure_not_none(exc_value, desc="exc_value")
error = get_rich_traceback(exc_value, git_ref=self._git_ref)
match error:
case ExcChainTB() | ExcGroupTB() | ExcTB():
text = error.format(header=True, detail=self._detail)
Expand Down

0 comments on commit 3d9b001

Please sign in to comment.