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

This commit is contained in:
Yann Leboulanger 2009-01-23 09:24:17 +00:00
parent 68cdc3a5f8
commit ea881946f4
1 changed files with 5 additions and 1 deletions

View File

@ -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