This problem seems to have been introduced with an upgrade to Python
3.10.
Reported-by: Adrian Zaugg <ipfire.org@mailgurgler.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if e.reason.errno == -2:
raise DDNSResolveError
+ # Cannot assign requested address
+ elif e.reason.errno == 99:
+ raise DDNSNetworkUnreachableError
+
# Network Unreachable (e.g. no IPv6 access)
- if e.reason.errno == 101:
+ elif e.reason.errno == 101:
raise DDNSNetworkUnreachableError
# Connection Refused