fix: restrict result type check to dict or str

This commit is contained in:
0xallam
2026-01-09 16:44:05 -08:00
committed by Ahmed Allam
parent 66de693618
commit 2608166895
@@ -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)