Don't use exc_info if found that IPv6 is not supported while starting listener

This commit is contained in:
Lee Miller 2022-09-23 08:11:07 +03:00
parent 313160aac5
commit 140e0139ef
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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',