From c2086a1fb4dfdf2327e1910bece6f4e23744130e Mon Sep 17 00:00:00 2001 From: David Brownman Date: Wed, 11 Dec 2024 17:11:34 -0800 Subject: [PATCH] fix deprecation warning in httpx @ 0.28 --- stripe/_http_client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stripe/_http_client.py b/stripe/_http_client.py index 0db2ef3f5..5940f6aad 100644 --- a/stripe/_http_client.py +++ b/stripe/_http_client.py @@ -1244,7 +1244,9 @@ def __init__( kwargs = {} if self._verify_ssl_certs: - kwargs["verify"] = stripe.ca_bundle_path + kwargs["verify"] = ssl.create_default_context( + capath=stripe.ca_bundle_path + ) else: kwargs["verify"] = False