We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2eaef4 commit 11749ddCopy full SHA for 11749dd
pandasai/core/response/parser.py
@@ -85,7 +85,7 @@ def _validate_response(self, result: dict):
85
return True
86
87
path_to_plot_pattern = r"^(\/[\w.-]+)+(/[\w.-]+)*$|^[^\s/]+(/[\w.-]+)*$"
88
- if not bool(re.match(path_to_plot_pattern, result["value"])):
+ if isinstance(result["value"], str) and not bool(re.match(path_to_plot_pattern, result["value"])):
89
raise InvalidOutputValueMismatch(
90
"Invalid output: Expected a plot save path str but received an incompatible type."
91
)
0 commit comments