Fixed documentation in docstring.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 7 Dec 2016 19:40:47 +0000 (20:40 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 7 Dec 2016 20:03:53 +0000 (21:03 +0100)
bin/tdyndns_update

index 0667c87..b955066 100755 (executable)
@@ -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)