Hi.
I have a following simple try/except block:
try:
except dns.exception.DNSException as err:
print(f'ERROR: {err!r}')
In case the DNS server for example refuses the connection or connection times out, then the exception is caught and error message is printed. This works as expected. However, in case of inbound_xfr() the exceptions do not seem to be caught correctly. Example:
try:
dns.query.inbound_xfr('192.168.1.55', zone, port=53)
except dns.exception.DNSException as err:
print(f'ERROR: {err!r}')
Is this an expected behavior? Or am I doing something wrong?
I'm using dnspython version 2.2.1.
thanks,
Martin