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")