Handle query dns timeout unhandled error (#1950)

Co-authored-by: hala alajlan <halalajlan@gmail.com>
This commit is contained in:
Hala Alajlan 2021-05-08 15:26:40 +03:00 committed by GitHub
parent 12aaebfc54
commit bc4ae51c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,8 @@ def check_mail_domain(domain, env, output):
if mx is None: if mx is None:
mxhost = None mxhost = None
elif mx == "[timeout]":
mxhost = None
else: else:
# query_dns returns a semicolon-delimited list # query_dns returns a semicolon-delimited list
# of priority-host pairs. # of priority-host pairs.