diff --git a/seed/relay-mail-client/funcs/relay_mail.py b/seed/relay-mail-client/funcs/relay_mail.py index 967fc8a..e7d6870 100644 --- a/seed/relay-mail-client/funcs/relay_mail.py +++ b/seed/relay-mail-client/funcs/relay_mail.py @@ -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): + if ip_smtp is None: + return ip_smtp_o = _ip_address(ip_smtp) for idx, net in enumerate(network_eth): if ip_smtp_o in _ip_network(net):