From c9d82e2d39159bec8c593823a5edd712ec306fe2 Mon Sep 17 00:00:00 2001 From: shokakucarrier Date: Fri, 1 Sep 2023 21:14:29 +0800 Subject: [PATCH] fix linter issue --- charon/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charon/storage.py b/charon/storage.py index 899008c..6291245 100644 --- a/charon/storage.py +++ b/charon/storage.py @@ -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') @@ -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")