From 176b08a87ec8e3250dbe68329cdd3eb7f33b619c Mon Sep 17 00:00:00 2001 From: Daisie Huang Date: Fri, 3 Jan 2025 21:32:22 -0800 Subject: [PATCH] Update auth.py --- src/authx/auth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/authx/auth.py b/src/authx/auth.py index 17724f5..5cafd04 100644 --- a/src/authx/auth.py +++ b/src/authx/auth.py @@ -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( @@ -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}")