From 140e0139ef2f573edb5e34a973f7bdad943d4e26 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Fri, 23 Sep 2022 08:11:07 +0300 Subject: [PATCH] Don't use exc_info if found that IPv6 is not supported while starting listener --- minode/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/minode/main.py b/minode/main.py index a4710e0..036c711 100644 --- a/minode/main.py +++ b/minode/main.py @@ -174,6 +174,9 @@ def start_ip_listener(): shared.listening_host, shared.listening_port, family=socket.AF_INET6) listener_ipv6.start() + except socket.gaierror as e: + if e.errno == -9: + logging.info('IPv6 is not supported.') except Exception: logging.info( 'Error while starting IPv6 listener on port %s',