dnstools: update docstrings about ValueError exceptions

This commit is contained in:
Thomas Waldmann 2013-10-03 20:47:25 +02:00
parent 2982bd6e30
commit 2dfc9707ca

View File

@ -47,6 +47,7 @@ def add(fqdn, ipaddr, ttl=60):
:param ipaddr: new ip address :param ipaddr: new ip address
:param ttl: time to live, default 60s (int) :param ttl: time to live, default 60s (int)
:raises: SameIpError if new and old IP is the same :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')) rdtype = check_ip(ipaddr, keys=('A', 'AAAA'))
try: try:
@ -92,6 +93,7 @@ def update(fqdn, ipaddr, ttl=60):
:param ipaddr: new ip address :param ipaddr: new ip address
:param ttl: time to live, default 60s (int) :param ttl: time to live, default 60s (int)
:raises: SameIpError if new and old IP is the same :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')) rdtype = check_ip(ipaddr, keys=('A', 'AAAA'))
try: try: