From db8bdd965713334e0b940db70fb43030a8beb074 Mon Sep 17 00:00:00 2001 From: Dan Morris Date: Fri, 24 Dec 2021 11:01:13 -0800 Subject: [PATCH] Bug fix in parallel_enumerate_blobs --- parallel_delete_blobs.py | 2 +- parallel_enumerate_blobs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parallel_delete_blobs.py b/parallel_delete_blobs.py index 534ed29..15f2bfb 100644 --- a/parallel_delete_blobs.py +++ b/parallel_delete_blobs.py @@ -15,7 +15,7 @@ import argparse from azure.storage.blob import BlobServiceClient from azure.core.exceptions import ResourceNotFoundError -from queue import Queue +from queue import Queue # Set to -1 to process all files debug_max_files = -1 diff --git a/parallel_enumerate_blobs.py b/parallel_enumerate_blobs.py index 91ae0b5..a27fb65 100644 --- a/parallel_enumerate_blobs.py +++ b/parallel_enumerate_blobs.py @@ -336,7 +336,7 @@ def parse_filenames_and_sizes(list_file): if ('catalog.json' in line) or ('stac.json' in line): continue tokens = line.split('\t') - assert len(tokens) == 2 + assert len(tokens) >= 2 fn = tokens[0] size_str = tokens[1] size = int(size_str)