Skip to content
Snippets Groups Projects
Commit ea881946 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't fail when we fail to open a certificate file. Fixes #4722

parent 68cdc3a5
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,11 @@ class NonBlockingTLS(PlugIn):
def _load_cert_file(self, cert_path, cert_store, logg=True):
if not os.path.isfile(cert_path):
return
f = open(cert_path)
try:
f = open(cert_path)
except IOError, e:
log.warning('Unable to open certificate file %s: %s' % \
(cert_path, str(e)))
lines = f.readlines()
i = 0
begin = -1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment