From c67a986aa3f1eb81519ceceb30370e41000caffd Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 30 Aug 2023 16:03:37 -0400 Subject: ignore dns.resolver.NoAnswer --- newspipe/controllers/user.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newspipe/controllers/user.py b/newspipe/controllers/user.py index 37af3215..77bcc9be 100644 --- a/newspipe/controllers/user.py +++ b/newspipe/controllers/user.py @@ -128,6 +128,8 @@ class LdapuserController(object): except dns.resolver.NXDOMAIN: # no records exist that match the request, so we were probably given a specific hostname, and an empty query will trigger the logic below that will add the original domain to the list. query = [] + except dns.resolver.NoAnswer: + query = [] for i in query: namelist.append(i.target.to_text().rstrip(".")) if not len(namelist): -- cgit