catch exception when trying to delete a host we are not allowed to modify anyway

This commit is contained in:
Thomas Waldmann 2013-11-23 02:57:15 +01:00
parent ab421fb686
commit ed074dd33b

View File

@ -196,5 +196,8 @@ def pre_delete_host(sender, **kwargs):
except (dnstools.Timeout, dnstools.NameServerNotAvailable):
# well, we tried to clean up, but we didn't reach the nameserver
pass
except (dnstools.DnsUpdateError, ):
# e.g. PeerBadSignature if host is protected by a key we do not have
pass
pre_delete.connect(pre_delete_host, sender=Host)