Skip to content

Commit

Permalink
skip unknown key formats
Browse files Browse the repository at this point in the history
  • Loading branch information
BioWilko committed Jan 20, 2025
1 parent b3b7d31 commit b8cdf8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion roz_scripts/utils/public_db_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ def k2_db_generator():

if len(key.split("_")) == 3:
k2, db, date = key.split("_")
else:
elif len(key.split("_")) == 4:
k2, db, size, date = key.split("_")

size = size.lstrip("0")

db = f"{db}_{size}"
else:
print(f"Unknown key format: {key} -> skipping")

date = date.rstrip(".tar.gz")

Expand Down

0 comments on commit b8cdf8f

Please sign in to comment.