diff --git a/slapos/libnetworkcache.py b/slapos/libnetworkcache.py index 647f9bb2b3daafb9aa54ba7be7f339929c2bcc74..b93cfc42a08335dce05932dbc6c356daf17faefc 100644 --- a/slapos/libnetworkcache.py +++ b/slapos/libnetworkcache.py @@ -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