From 142df57ac441ded1b4afb9f8d3f747395124e61a Mon Sep 17 00:00:00 2001 From: Andreas Hellander Date: Sat, 4 Nov 2023 09:13:04 +0100 Subject: [PATCH] Fixes --- fedn/fedn/common/storage/s3/miniorepo.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fedn/fedn/common/storage/s3/miniorepo.py b/fedn/fedn/common/storage/s3/miniorepo.py index 9341704e6..154cea7e9 100644 --- a/fedn/fedn/common/storage/s3/miniorepo.py +++ b/fedn/fedn/common/storage/s3/miniorepo.py @@ -62,11 +62,13 @@ def __init__(self, config): self.create_bucket(self.bucket) def create_bucket(self, bucket_name): - """ + """ Create a new bucket. If bucket exists, do nothing. - :param bucket_name: + :param bucket_name: The name of the bucket + :type bucket_name: str """ found = self.client.bucket_exists(bucket_name) + if not found: try: self.client.make_bucket(bucket_name)