diff --git a/aperturedb/Connector.py b/aperturedb/Connector.py index b0f63a2f..f21a0d67 100644 --- a/aperturedb/Connector.py +++ b/aperturedb/Connector.py @@ -416,10 +416,8 @@ 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.") - self.conn.close() - self.connected = False raise except FileNotFoundError as e: