From 043daf2539bad206b1d1112c05fe0572b76676b3 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Tue, 14 May 2019 11:55:17 -0400 Subject: [PATCH] Remove unused variable in except statement. --- trustymail/trustymail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trustymail/trustymail.py b/trustymail/trustymail.py index ba5c3b6..79cd68c 100755 --- a/trustymail/trustymail.py +++ b/trustymail/trustymail.py @@ -177,7 +177,7 @@ def starttls_scan(domain, smtp_timeout, smtp_localhost, smtp_ports, smtp_cache): addr_info = socket.getaddrinfo( mail_server, port, socket.AF_INET, socket.SOCK_STREAM ) - except socket.gaierror as error: + except socket.gaierror: # We get this exception if there is no A record # for the given mail server. This does happen, # since among their MX records some domains do