Skip to content

Commit 024d0b6

Browse files
committed
refactor: simplify environment variable loading in S3Client initialization
1 parent 45cf135 commit 024d0b6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hivemind_etl/storage/s3_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
class S3Client:
1515
def __init__(self):
16-
loaded = load_dotenv()
17-
if not loaded:
18-
raise ValueError("Failed to load environment variables")
16+
load_dotenv()
1917

2018
# Get AWS S3 environment variables
2119
self.endpoint_url = os.getenv("AWS_ENDPOINT_URL")

0 commit comments

Comments
 (0)