From 2dfc9707caa7ac50fec325d7c847be73a0c34b02 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 3 Oct 2013 20:47:25 +0200 Subject: [PATCH] dnstools: update docstrings about ValueError exceptions --- nsupdate/main/dnstools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nsupdate/main/dnstools.py b/nsupdate/main/dnstools.py index a0070b1..a79f816 100644 --- a/nsupdate/main/dnstools.py +++ b/nsupdate/main/dnstools.py @@ -47,6 +47,7 @@ def add(fqdn, ipaddr, ttl=60): :param ipaddr: new ip address :param ttl: time to live, default 60s (int) :raises: SameIpError if new and old IP is the same + :raises: ValueError if ipaddr is no valid ip address string """ rdtype = check_ip(ipaddr, keys=('A', 'AAAA')) try: @@ -92,6 +93,7 @@ def update(fqdn, ipaddr, ttl=60): :param ipaddr: new ip address :param ttl: time to live, default 60s (int) :raises: SameIpError if new and old IP is the same + :raises: ValueError if ipaddr is no valid ip address string """ rdtype = check_ip(ipaddr, keys=('A', 'AAAA')) try: