From: Philipp Spitzer Date: Wed, 7 Dec 2016 19:40:47 +0000 (+0100) Subject: Fixed documentation in docstring. X-Git-Url: https://git.toastfreeware.priv.at/toast/tdyndns.git/commitdiff_plain/666ba1581308d62aebbaf7142595ee86cc3f9168 Fixed documentation in docstring. --- diff --git a/bin/tdyndns_update b/bin/tdyndns_update index 0667c87..b955066 100755 --- a/bin/tdyndns_update +++ b/bin/tdyndns_update @@ -71,7 +71,7 @@ def nsupdate_delete(fqdn, ip_family): def blockip_whitelist_add(ip): """ :param ip: ipv4 address - :raises a BlockipError in case of errors.""" + :raises a CalledProcessError in case of errors.""" if ipfamily_by_ip(ip) == 'A': command = ['iptables', '-I', 'blockip', '-s', str(ip), '-j', 'ACCEPT'] check_call(command) @@ -80,7 +80,7 @@ def blockip_whitelist_add(ip): def blockip_whitelist_delete(ip): """ :param ip: ipv4 address - :raises a BlockipError in case of errors.""" + :raises a CalledProcessError in case of errors.""" if ipfamily_by_ip(ip) == 'A': command = ['iptables', '-D', 'blockip', '-s', str(ip), '-j', 'ACCEPT'] check_call(command)