mirror of
https://github.com/usestrix/strix.git
synced 2026-10-09 03:18:31 +00:00
fix: restrict result type check to dict or str
This commit is contained in:
parent
7b7ea59a37
commit
86a687ede8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue