From 5b7828182627094db0d50ca9b63b52f64bc50183 Mon Sep 17 00:00:00 2001 From: ad-claw000 Date: Tue, 21 Apr 2026 22:17:06 +0000 Subject: [PATCH 1/2] fix: remove redundant connection close in SSLError catch block (Closes #625) --- aperturedb/Connector.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/aperturedb/Connector.py b/aperturedb/Connector.py index 80705f6d..8ae0526b 100644 --- a/aperturedb/Connector.py +++ b/aperturedb/Connector.py @@ -419,8 +419,6 @@ def _connect(self): os.linesep except ssl.SSLError as e: logger.exception(f"Error wrapping socket.") - self.conn.close() - self.connected = False raise except FileNotFoundError as e: From ffeb2749a1d92f6b370e8d8d29b15858c1fdff9d Mon Sep 17 00:00:00 2001 From: luisremis Date: Wed, 22 Apr 2026 11:55:30 -0700 Subject: [PATCH 2/2] Update aperturedb/Connector.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- aperturedb/Connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aperturedb/Connector.py b/aperturedb/Connector.py index 8ae0526b..62b7f652 100644 --- a/aperturedb/Connector.py +++ b/aperturedb/Connector.py @@ -417,7 +417,7 @@ def _connect(self): f"Refer to the documentation for more information: {SETUP_URL}" + os.linesep + \ f"Alternatively, SSL can be disabled by setting verify_hostname=False or use_ssl=False (not recommended)" + \ os.linesep - except ssl.SSLError as e: + except ssl.SSLError: logger.exception(f"Error wrapping socket.") raise