mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-09 00:50:58 +00:00
Properly detect missing IPv6 protocol support.
This commit is contained in:
parent
3303a3697d
commit
8473bfee96
2 changed files with 4 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue