From 024d0b690b394fc728e001a59bbb4c1dd61ad7b5 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Wed, 21 May 2025 11:52:51 +0330 Subject: [PATCH] refactor: simplify environment variable loading in S3Client initialization --- hivemind_etl/storage/s3_client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hivemind_etl/storage/s3_client.py b/hivemind_etl/storage/s3_client.py index 2a4fdb2..3800c6d 100644 --- a/hivemind_etl/storage/s3_client.py +++ b/hivemind_etl/storage/s3_client.py @@ -13,9 +13,7 @@ class S3Client: def __init__(self): - loaded = load_dotenv() - if not loaded: - raise ValueError("Failed to load environment variables") + load_dotenv() # Get AWS S3 environment variables self.endpoint_url = os.getenv("AWS_ENDPOINT_URL")