Compare commits

...
Author SHA1 Message Date
Elizabeth ThompsonandClaude Opus 4.8 45b643a686 fix(chart/data): handle QueryObjectValidationError in _get_data_response
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-12 23:39:43 +00:00
+1 -1
View File
@@ -644,7 +644,7 @@ class ChartDataRestApi(ChartRestApi):
result = command.execute(force_cached=force_cached)
except ChartDataCacheLoadError as exc:
return self.response_422(message=sanitize_error_message(exc.message))
except ChartDataQueryFailedError as exc:
except (ChartDataQueryFailedError, QueryObjectValidationError) as exc:
return self.response_400(message=sanitize_error_message(exc.message))
# Log is_cached if extra payload callback is provided