aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newspipe/controllers/user.py2
1 files changed, 2 insertions, 0 deletions
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):
bgstack15