From b9097520b6ad357a0db1582f32285c5f3144adff Mon Sep 17 00:00:00 2001 From: Michael Calmer Date: Wed, 16 Aug 2023 13:24:57 +0200 Subject: [PATCH] explicitly catch AtrributeError --- python/spacewalk/satellite_tools/satCerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/spacewalk/satellite_tools/satCerts.py b/python/spacewalk/satellite_tools/satCerts.py index 2fbea1c5370e..1999d7a192e6 100644 --- a/python/spacewalk/satellite_tools/satCerts.py +++ b/python/spacewalk/satellite_tools/satCerts.py @@ -41,7 +41,7 @@ def get_certificate_info(cert_str): subject = cert.get_subject() try: cn = subject.CN - except: + except AttributeError: cn = "" serial_number = cert.get_serial_number() return cn, serial_number, not_before, not_after