From ed074dd33b3955e8a23569eb642d35c47d50eb2c Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 23 Nov 2013 02:57:15 +0100 Subject: [PATCH] catch exception when trying to delete a host we are not allowed to modify anyway --- nsupdate/main/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nsupdate/main/models.py b/nsupdate/main/models.py index 48d808f..98f2dcf 100644 --- a/nsupdate/main/models.py +++ b/nsupdate/main/models.py @@ -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)