Skip to content

Commit

Permalink
list tool fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rounak610 committed Sep 12, 2023
1 parent 99d0271 commit d8c57f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superagi/helper/s3_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,7 @@ def list_files_from_s3(self, file_path):
logger.info(response['Contents'])
file_list = [obj['Key'] for obj in response['Contents']]
return file_list
else:
raise Exception(f"No contents in S3 response")
except:
raise Exception(f"Error listing files from s3")

0 comments on commit d8c57f7

Please sign in to comment.