From b9552cd7faa9db0851244d995900c9b97d199243 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 31 Jul 2023 16:46:55 +0200 Subject: [PATCH] fix(seed/relay-mail-client/funcs/relay_mail.py): do not raise if ip_smtp is None --- seed/relay-mail-client/funcs/relay_mail.py | 2 ++ 1 file changed, 2 insertions(+) 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):