Skip to content

Commit

Permalink
Remove None from text that should be printed in console
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Jan 29, 2025
1 parent 52dc65f commit 287d335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logfire/_internal/exporters/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def _print_span(self, span: ReadableSpan, indent: int = 0):
parts += [('\n', '')] + details_parts

if self._console:
self._console.print(Text.assemble(*parts))
self._console.print(Text.assemble(*[(text, style) for text, style in parts if text is not None])) # type: ignore
else:
print(''.join(text for text, _style in parts), file=self._output)
print(''.join(text for text, _style in parts if text is not None), file=self._output) # type: ignore

# This uses a separate system for color vs no-color because it's not simple text:
# in the rich case it uses syntax highlighting and columns for layout.
Expand Down

0 comments on commit 287d335

Please sign in to comment.