Skip to content

Commit 6a9561e

Browse files
author
Luis M. Valerio Castillo
committed
Fixed syntax issues while looking for items in a bucket
1 parent 2fe132e commit 6a9561e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/make_vcsp_2018.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def make_vcsp_s3(lib_name, lib_path, skip_cert):
419419
update_items_json = False
420420

421421
response = s3_client.list_objects_v2(Bucket=bucket_name, Prefix=lib_folder_path, Delimiter="/")
422-
if response['CommonPrefixes']:
422+
if 'CommonPrefixes' in response:
423423
# skip items generation if no child folders
424424
for child in response['CommonPrefixes']:
425425
p = child['Prefix']

0 commit comments

Comments
 (0)