Skip to content

Commit

Permalink
fix bugs when s3 folder is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyongliang committed Dec 12, 2022
1 parent f2294b4 commit b3d97a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/api/api.py
Expand Up @@ -362,6 +362,8 @@ def download_s3files(self, s3uri, path):
self.cache = json.load(open('cache', 'r'))

for obj in objs:
if obj.key == key:
continue
response = self.s3_client.head_object(
Bucket = bucket,
Key = obj.key
Expand Down

0 comments on commit b3d97a6

Please sign in to comment.