From 666ba1581308d62aebbaf7142595ee86cc3f9168 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Wed, 7 Dec 2016 20:40:47 +0100 Subject: [PATCH] Fixed documentation in docstring. --- bin/tdyndns_update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.5