Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/utils/error_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,7 @@ def log_exception(
correlation_id = uuid.uuid4().hex[:8]

exc_type = type(exc).__name__ if exc is not None else "UnknownError"
tb = (
"".join(traceback.format_exception(type(exc), exc, exc.__traceback__))
if exc is not None
else "No traceback available"
)
tb = "".join(traceback.format_exception(type(exc), exc, exc.__traceback__)) if exc else "No traceback available"

logger.error(
"status=%d id=%s type=%s context=%r\n%s",
Expand Down
Loading