don't fail when we fail to open a certificate file. Fixes #4722
This commit is contained in:
parent
68cdc3a5f8
commit
ea881946f4
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue