Skip to content

Commit 64c261a

Browse files
committed
s3 contents key
1 parent a26d17e commit 64c261a

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/superannotate/lib/app/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_s3_annotation_paths(folder_path, s3_bucket, annotation_paths, recursive)
8787

8888
paginator = s3_client.get_paginator("list_objects_v2")
8989
for data in paginator.paginate(Bucket=s3_bucket, Prefix=folder_path):
90-
for annotation in data["Contents"]:
90+
for annotation in data.get("Contents", []):
9191
key = annotation["Key"]
9292
if (
9393
key.endswith(VECTOR_ANNOTATION_POSTFIX)

tests/unit/test_s3_upload.py

Whitespace-only changes.

0 commit comments

Comments
 (0)