Commit c758f22d authored by Łukasz Nowak's avatar Łukasz Nowak

fix "Ignore bad signature certificates with message"

python 3 compatibility
parent 0578762b
Pipeline #6935 running with stage
in 0 seconds
......@@ -217,7 +217,7 @@ class NetworkcacheClient(object):
try:
loaded_certificate = crypto.load_certificate(crypto.FILETYPE_PEM, certificate)
except Exception as e:
logger.info('Ignored wrong certificate, reason:\n%s, offending certificate:\n%s', e.message, certificate)
logger.info('Ignored wrong certificate, reason:\n%s, offending certificate:\n%s', e, certificate)
self.signature_certificate_list.append(loaded_certificate)
# NetworkcacheClient context manager catches all exceptions and logs them
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment