Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shokakucarrier committed Sep 1, 2023
1 parent 1fc4333 commit c9d82e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charon/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def list_folder_content(self, bucket_name: str, folder: str) -> List[str]:
not in its subfolders.
"""
bucket = self.__get_bucket(bucket_name)

try:
if not folder or folder.strip() == "/" or folder.strip() == "":
paginator = bucket.meta.client.get_paginator('list_objects_v2')
Expand All @@ -720,7 +720,7 @@ def list_folder_content(self, bucket_name: str, folder: str) -> List[str]:
" %s due to error: %s ", folder,
bucket_name, e)
return []

contents = []
for page in pages:
folders = page.get("CommonPrefixes")
Expand Down

0 comments on commit c9d82e2

Please sign in to comment.