diff --git a/src/sentry/api/endpoints/organization_metrics_estimation_stats.py b/src/sentry/api/endpoints/organization_metrics_estimation_stats.py index 4b19e9c4fa8150..2d73552f9c030a 100644 --- a/src/sentry/api/endpoints/organization_metrics_estimation_stats.py +++ b/src/sentry/api/endpoints/organization_metrics_estimation_stats.py @@ -149,7 +149,7 @@ def estimate_volume( def _get_value(elm: MetricVolumeRow) -> float: - return cast(List[CountResult], elm[1])[0]["count"] + return cast(List[CountResult], elm[1])[0].get("count", 0.0) def _set_value(elm: MetricVolumeRow, value: float) -> None: