mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-24 02:37:05 +00:00
Fixed SIM114 (if-with-same-arms): Combine if
branches using logical or
operator
This commit is contained in:
parent
a32354fd91
commit
618c466b84
@ -678,9 +678,7 @@ def check_mail_domain(domain, env, output):
|
|||||||
recommended_mx = "10 " + env['PRIMARY_HOSTNAME']
|
recommended_mx = "10 " + env['PRIMARY_HOSTNAME']
|
||||||
mx = query_dns(domain, "MX", nxdomain=None)
|
mx = query_dns(domain, "MX", nxdomain=None)
|
||||||
|
|
||||||
if mx is None:
|
if mx is None or mx == "[timeout]":
|
||||||
mxhost = None
|
|
||||||
elif mx == "[timeout]":
|
|
||||||
mxhost = None
|
mxhost = None
|
||||||
else:
|
else:
|
||||||
# query_dns returns a semicolon-delimited list
|
# query_dns returns a semicolon-delimited list
|
||||||
|
Loading…
Reference in New Issue
Block a user