diff --git a/websocket/_core.py b/websocket/_core.py index 6b37d96..e98054a 100644 --- a/websocket/_core.py +++ b/websocket/_core.py @@ -422,7 +422,6 @@ class WebSocket(object): sslopt = dict(cert_reqs=ssl.CERT_REQUIRED) certPath = os.path.join( os.path.dirname(__file__), "cacert.pem") - ) if os.path.isfile(certPath): sslopt['ca_certs'] = certPath sslopt.update(self.sslopt)