fix: restrict result type check to dict or str

This commit is contained in:
0xallam
2026-01-09 16:43:25 -08:00
committed by Ahmed Allam
parent 7b7ea59a37
commit 86a687ede8

View File

@@ -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)