Test ca_certs before testing if it is a file
This commit is contained in:
1 parent
bf6f632c3c
commit
2e5f46cac0
1 file changed
+1
-1
+1
-1
@@ -50,7 +50,7 @@ class PySocket:
|
||||
self.connected = False
|
||||
self.buffer = ''
|
||||
self.fingerprints = fingerprints
|
||||
if os.path.isfile(ca_certs):
|
||||
if ca_certs and os.path.isfile(ca_certs):
|
||||
self.ca_certs = ca_certs
|
||||
else:
|
||||
self.ca_certs = None
|
||||
|
||||
Reference in new issue
Block a user