Skip to content

Commit

Permalink
Merge pull request #725 from dmick/main
Browse files Browse the repository at this point in the history
tools/checkcerts.py: apparently SSLError is also possible, catch
  • Loading branch information
dmick authored Apr 21, 2023
2 parents 030f5cd + 81d385b commit f9be95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/checkcerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def main():
with socket.create_connection((domain, 443)) as sock:
with context.wrap_socket(sock, server_hostname=domain) as ssock:
cert = ssock.getpeercert()
except ssl.CertificateError as e:
except (ssl.CertificateError, ssl.SSLError) as e:
print(f'{domain} cert error: {e}', file=sys.stderr)
continue
expire = datetime.datetime.strptime(cert['notAfter'],
Expand Down

0 comments on commit f9be95d

Please sign in to comment.