dnstools: update docstrings about ValueError exceptions
This commit is contained in:
parent
2982bd6e30
commit
2dfc9707ca
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user