diff --git a/validators/domain.py b/validators/domain.py index 808d3b05..1c1ce232 100644 --- a/validators/domain.py +++ b/validators/domain.py @@ -58,5 +58,5 @@ def domain(value): """ try: return pattern.match(to_unicode(value).encode('idna').decode('ascii')) - except UnicodeError: + except (UnicodeError, AttributeError): return False pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy