Skip to content

Commit

Permalink
explicitly catch AtrributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalmer committed Aug 16, 2023
1 parent a2cc593 commit 8dda1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/spacewalk/satellite_tools/satCerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dda1a1

Please sign in to comment.