* Reduce the number of digits after the decimal point for the Timeout
DNSException from 15 to 1
* Address Bob Halley's concerns: change .1f to .3f and update LifetimeTimeout
class Timeout(DNSException):
"""The DNS operation timed out."""
supp_kwargs = {'timeout'}
- fmt = "The DNS operation timed out after {timeout} seconds"
+ fmt = "The DNS operation timed out after {timeout:.3f} seconds"
class ExceptionWrapper:
"""The resolution lifetime expired."""
msg = "The resolution lifetime expired."
- fmt = "%s after {timeout} seconds: {errors}" % msg[:-1]
+ fmt = "%s after {timeout:.3f} seconds: {errors}" % msg[:-1]
supp_kwargs = {'timeout', 'errors'}
def _fmt_kwargs(self, **kwargs):