fix: restrict result type check to dict or str
This commit is contained in:
@@ -149,7 +149,7 @@ class PythonRenderer(BaseToolRenderer):
|
||||
else:
|
||||
text.append("Running...", style="dim")
|
||||
|
||||
if result:
|
||||
if result and isinstance(result, dict | str):
|
||||
cls._append_output(text, result)
|
||||
|
||||
css_classes = cls.get_css_classes(status)
|
||||
|
||||
Reference in New Issue
Block a user