From cfa727685c62aa7fd7b119c03cfb8e35aabd1e9f Mon Sep 17 00:00:00 2001 From: Matej Spiller Muys Date: Fri, 13 Dec 2024 21:33:54 +0100 Subject: [PATCH 1/2] Support for python 3.12 --- raven/utils/http.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/raven/utils/http.py b/raven/utils/http.py index f0d14a0c4..903020ca1 100644 --- a/raven/utils/http.py +++ b/raven/utils/http.py @@ -34,8 +34,10 @@ def connect(self): self.sock = sock self._tunnel() - self.sock = ssl.wrap_socket( - sock, ca_certs=ca_certs, cert_reqs=ssl.CERT_REQUIRED) + context = ssl.SSLContext(ssl.PROTOCOL_TLS) + context.load_verify_locations(ca_certs) + context.verify_mode = ssl.CERT_REQUIRED + self.sock = context.wrap_socket(sock) if assert_hostname is not None: match_hostname(self.sock.getpeercert(), From 135cb9cd3ce432973c85617d26c4f9cb108681c6 Mon Sep 17 00:00:00 2001 From: Matej Spiller Muys Date: Fri, 13 Dec 2024 21:55:52 +0100 Subject: [PATCH 2/2] Update version --- raven/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raven/__init__.py b/raven/__init__.py index d6d9347c4..74bdefcc9 100644 --- a/raven/__init__.py +++ b/raven/__init__.py @@ -12,7 +12,7 @@ __all__ = ('VERSION', 'Client', 'get_version') # noqa -VERSION = '6.10.0' +VERSION = '6.10.1' def _get_git_revision(path):