Don't use exc_info if found that IPv6 is not supported while starting listener
This commit is contained in:
parent
313160aac5
commit
140e0139ef
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue
Block a user