summaryrefslogtreecommitdiff
path: root/dns/exception.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2016-05-12 06:20:01 -0700
committerBob Halley <halley@dnspython.org>2016-05-12 06:20:01 -0700
commitb3e3152dd9d1763a30642e63ec5db3ce9e4bb2fb (patch)
treee06e5da8d87aef0d8a01abe426b7beeba5896340 /dns/exception.py
parent8ecd53c269ed8c7df78e34ba3935294526e41378 (diff)
downloaddnspython-b3e3152dd9d1763a30642e63ec5db3ce9e4bb2fb.tar.gz
Do not reference docstrings in exception formatting as they may be stripped.
[issue #154]
Diffstat (limited to 'dns/exception.py')
-rw-r--r--dns/exception.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/exception.py b/dns/exception.py
index 81c8daa..799d53a 100644
--- a/dns/exception.py
+++ b/dns/exception.py
@@ -121,4 +121,4 @@ class Timeout(DNSException):
"""The DNS operation timed out."""
supp_kwargs = set(['timeout'])
- fmt = "%s after {timeout} seconds" % __doc__[:-1]
+ fmt = "The DNS operation timed out after {timeout} seconds"