Skip to content

Commit

Permalink
Remove unused variable in except statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed May 14, 2019
1 parent bd88ccc commit 043daf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trustymail/trustymail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 043daf2

Please sign in to comment.