Skip to content

Commit 745be2b

Browse files
authored
Merge pull request #347 from superannotateai/friday_405
s3 contents key
2 parents 56a8457 + 64c261a commit 745be2b

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)