Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 4, 2025
1 parent e0bf6ac commit 176b08a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,10 @@ def get_minio_client(token=None, s3_endpoint=None, bucket=None, access_key=None,
from minio import Minio
if region is None:
client = Minio(
endpoint = url,
access_key = access_key,
secret_key = secret_key,
secure = secure
endpoint=url,
access_key=access_key,
secret_key=secret_key,
secure=secure
)
else:
client = Minio(
Expand All @@ -410,7 +410,7 @@ def get_minio_client(token=None, s3_endpoint=None, bucket=None, access_key=None,
region = region,
secure = secure
)

print(f"HOWDY {client.bucket_exists(bucket)}")
if not client.bucket_exists(bucket):
raise CandigAuthError(f"bucket {bucket} does not exist at {url}")

Expand Down

0 comments on commit 176b08a

Please sign in to comment.