Skip to content

Commit ca893b8

Browse files
ceorourkeandrewshie-sentry
authored andcommitted
chore(anomaly detection): Set to 0 if not agg val (#88114)
Shot in the dark, idk if it'll help but 🤷
1 parent 61d0c32 commit ca893b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/seer/anomaly_detection/get_anomaly_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_anomaly_data_from_seer(
5959
logger.info("Missing anomaly detection rule data", extra=extra_data)
6060
return None
6161

62-
if aggregation_value is None:
62+
if not aggregation_value:
6363
metrics.incr("anomaly_detection.aggregation_value.none")
6464
logger.warning("Aggregation value is none", extra=extra_data)
6565
aggregation_value = 0

0 commit comments

Comments
 (0)