diff --git a/python/nav/asyncdns.py b/python/nav/asyncdns.py index 801868e145..796b7546cb 100644 --- a/python/nav/asyncdns.py +++ b/python/nav/asyncdns.py @@ -88,9 +88,8 @@ def lookup_names(): for name in names: for deferred in self.lookup(name): deferred.addCallback(self._extract_records, name) - deferred.addCallback(self._save_result) deferred.addErrback(self._errback, name) - deferred.addErrback(self._save_result) + deferred.addCallback(self._save_result) yield deferred # Limits the number of parallel requests to BATCH_SIZE