From 96be3c305f5c25f95f84634177e3da2686ad312b Mon Sep 17 00:00:00 2001 From: nospame Date: Thu, 9 Jan 2025 15:12:42 -0800 Subject: [PATCH] Always return a value from `_update_or_create_domain_metrics` Otherwise it will TypeError on unpacking `metrics, __` and fail the whole `update_domain_metrics_for_domains` task --- corehq/apps/data_analytics/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/corehq/apps/data_analytics/tasks.py b/corehq/apps/data_analytics/tasks.py index ab31c9945b7d..586f64aab92d 100644 --- a/corehq/apps/data_analytics/tasks.py +++ b/corehq/apps/data_analytics/tasks.py @@ -151,6 +151,7 @@ def _update_or_create_domain_metrics(domain, all_stats): notify_exception( None, message='Failed to create or update domain metrics for {domain}: {}'.format(e, domain=domain) ) + return None, False def get_domains_to_update():