From 2a3fbfc0035c6bf817ccaf3bdfd7488324e33853 Mon Sep 17 00:00:00 2001 From: Rob Svirskas Date: Tue, 25 Jul 2023 10:14:13 -0400 Subject: [PATCH] Fixed error caused by deletions in process --- bin/bucket_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bucket_status.py b/bin/bucket_status.py index 4a00d49..f6a74f1 100644 --- a/bin/bucket_status.py +++ b/bin/bucket_status.py @@ -50,7 +50,7 @@ def process_template_cdm(bucket, template): if part.isnumeric(): arr.append(int(part)) arr = sorted(arr) - last = arr[-1] + last = arr[-1] if arr else "" prefix = "/".join([template, library,"searchable_neurons", "KEYS", "0"]) objs = get_objects(bucket, prefix) version = objs[-1].split(".")[-1].replace("_", ".") if objs[-1] and ".v" in objs[-1] \