dnc

CLI tool to check domain names configuration and statistics
Log | Files | Refs | README | LICENSE

commit a58c0addf44f2c277401cada349e22ac7a4b89f8
parent 759bab54dd47e3f3191f91e5341d390b73232d58
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue, 19 Jan 2021 18:33:17 +0100

Remove assigned but never used 'error' local variable.

Diffstat:
Mdnc.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dnc.py b/dnc.py @@ -36,7 +36,7 @@ def query(domain: str, rrtype: str) -> str: def tls(domain: str, _: str) -> str: try: cert = ssl.get_server_certificate((domain, 443)) - except (socket.error, socket.timeout) as error: + except (socket.error, socket.timeout): return "No TLS" x509 = OpenSSL.crypto.load_certificate(OpenSSL.crypto.FILETYPE_PEM, cert)