Properly detect missing IPv6 protocol support.

This commit is contained in:
Bastian Kleineidam 2011-01-29 11:35:06 +01:00
parent 3303a3697d
commit 8473bfee96
2 changed files with 4 additions and 1 deletions

View file

@ -6,6 +6,8 @@ Fixes:
- logging: Enforce encoding error policy when writing to stdout.
- checking: Prevent error message from Geoip by using the correct
API function when no city database is installed.
- checking: Properly detect case where IPv6 is not supported.
Closes: SF bug #3167249
6.2 "Despicable Me" (released 6.1.2011)

View file

@ -30,7 +30,8 @@ if socket.has_ipv6:
# only catch these one:
# socket.error: (97, 'Address family not supported by protocol')
# socket.error: (10047, 'Address family not supported by protocol')
if msg.args[0] not in (97, 10047):
# socket.error: (43, 'Protocol not supported')
if msg.args[0] not in (97, 10047, 43):
raise