Skip to content

Commit

Permalink
Fixed error caused by deletions in process
Browse files Browse the repository at this point in the history
  • Loading branch information
robsv committed Jul 25, 2023
1 parent 3e1efa9 commit 2a3fbfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/bucket_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] \
Expand Down

0 comments on commit 2a3fbfc

Please sign in to comment.