Skip to content

Commit

Permalink
Fix prep script for empty buckets (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin authored Oct 20, 2023
1 parent fa9098d commit d7a090c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/prep-benchmark-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _print_status(msg):

response = s3.list_objects_v2(**request_kwargs)

for obj in response['Contents']:
for obj in response.get('Contents', []):
key = obj['Key']
size = obj['Size']
checksum_algorithm_list = obj.get('ChecksumAlgorithm')
Expand Down

0 comments on commit d7a090c

Please sign in to comment.