Skip to content

Commit 043daf2

Browse files
committed
Remove unused variable in except statement.
1 parent bd88ccc commit 043daf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trustymail/trustymail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def starttls_scan(domain, smtp_timeout, smtp_localhost, smtp_ports, smtp_cache):
177177
addr_info = socket.getaddrinfo(
178178
mail_server, port, socket.AF_INET, socket.SOCK_STREAM
179179
)
180-
except socket.gaierror as error:
180+
except socket.gaierror:
181181
# We get this exception if there is no A record
182182
# for the given mail server. This does happen,
183183
# since among their MX records some domains do

0 commit comments

Comments
 (0)