From c758f22dfb181971628d2d16d7c3cc5e97c276a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= Date: Tue, 3 Dec 2019 15:15:51 +0100 Subject: [PATCH] fix "Ignore bad signature certificates with message" python 3 compatibility --- slapos/libnetworkcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slapos/libnetworkcache.py b/slapos/libnetworkcache.py index 647f9bb..b93cfc4 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 -- 2.25.1