Skip to content

Commit c6dc529

Browse files
Fix AttributeError when trying to log a None (#1786)
1 parent 7069ea4 commit c6dc529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/smolagents/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ def _step_stream(
16631663
memory_step.model_output_message = chat_message
16641664
output_text = chat_message.content
16651665
self.logger.log_markdown(
1666-
content=output_text,
1666+
content=output_text or "",
16671667
title="Output message of the LLM:",
16681668
level=LogLevel.DEBUG,
16691669
)

0 commit comments

Comments
 (0)