aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-08-30 16:03:37 -0400
committerB. Stack <bgstack15@gmail.com>2023-08-30 16:03:37 -0400
commitc67a986aa3f1eb81519ceceb30370e41000caffd (patch)
treed796c379cf1886b2315193680a38f2fc0dafd97e
parentcheck config after loading config (diff)
downloadnewspipe-c67a986aa3f1eb81519ceceb30370e41000caffd.tar.gz
newspipe-c67a986aa3f1eb81519ceceb30370e41000caffd.tar.bz2
newspipe-c67a986aa3f1eb81519ceceb30370e41000caffd.zip
ignore dns.resolver.NoAnswer
-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