From 4a105be5c5aabf2b1e3d2153a7d4e843b04fae4b Mon Sep 17 00:00:00 2001 From: Tatiana Korchuganova Date: Mon, 25 Nov 2024 17:47:25 +0100 Subject: [PATCH] errorSummary | fix if no jobs found --- core/pandajob/summary_error.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pandajob/summary_error.py b/core/pandajob/summary_error.py index 252620b1..1f0f3ead 100644 --- a/core/pandajob/summary_error.py +++ b/core/pandajob/summary_error.py @@ -164,7 +164,7 @@ def build_error_histograms(jobs, is_wn_instead_of_site=False): 'code': ','.join(sorted(get_job_error_categories(job))), 'task': str(job['jeditaskid']), 'user': job['produsername'], - 'request': str(job['reqid']), + 'request': str(job['reqid']) if 'reqid' in job else 'None', }) timestamp_list.append(job['modificationtime'])