fix(seed/relay-mail-client/funcs/relay_mail.py): do not raise if ip_smtp is None
This commit is contained in:
parent
c9fa6cf0e5
commit
b9552cd7fa
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,8 @@ from rougail.utils import normalize_family as _normalize_family
|
||||||
|
|
||||||
|
|
||||||
def get_local_smtp_info(ip_smtp, infos, network_eth, normalize=False):
|
def get_local_smtp_info(ip_smtp, infos, network_eth, normalize=False):
|
||||||
|
if ip_smtp is None:
|
||||||
|
return
|
||||||
ip_smtp_o = _ip_address(ip_smtp)
|
ip_smtp_o = _ip_address(ip_smtp)
|
||||||
for idx, net in enumerate(network_eth):
|
for idx, net in enumerate(network_eth):
|
||||||
if ip_smtp_o in _ip_network(net):
|
if ip_smtp_o in _ip_network(net):
|
||||||
|
|
Loading…
Reference in a new issue