From 12209417bbcca0e9e1cf7cd577dccf895c5fcfe2 Mon Sep 17 00:00:00 2001 From: Paige Patton Date: Mon, 6 Jan 2025 15:30:39 -0500 Subject: [PATCH] list check --- pkg/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/utils.py b/pkg/utils.py index cc29d9d..caed474 100644 --- a/pkg/utils.py +++ b/pkg/utils.py @@ -230,10 +230,10 @@ def process_test( last_version_run = runs metadata['ocpVersion'] = str(float(metadata['ocpVersion'][:4]) - .01) runs = match.get_uuid_by_metadata(metadata, fingerprint_index, lookback_date=start_timestamp) - - # get latest uuid as the "uuid" to compare against - last_uuid_run = last_version_run[-1] - runs.append(last_uuid_run) + if len(last_version_run) > 0: + # get latest uuid as the "uuid" to compare against + last_uuid_run = last_version_run[-1] + runs.append(last_uuid_run) if not runs: logger.info("No UUID present for given metadata")