diff --git a/src/sentry/relay/config/metric_extraction.py b/src/sentry/relay/config/metric_extraction.py index 243d01bb8b8576..85bd5b72b65011 100644 --- a/src/sentry/relay/config/metric_extraction.py +++ b/src/sentry/relay/config/metric_extraction.py @@ -1490,7 +1490,8 @@ def get_current_widget_specs(organization: Organization) -> set[str]: ).values_list("spec_hashes", flat=True) current_widget_specs: set[str] = set() for spec_list in widget_specs: - current_widget_specs = current_widget_specs.union(spec_list) + if spec_list is not None: + current_widget_specs.update(spec_list) return current_widget_specs