We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84dfb21 commit 28c8762Copy full SHA for 28c8762
validators/domain.py
@@ -58,5 +58,5 @@ def domain(value):
58
"""
59
try:
60
return pattern.match(to_unicode(value).encode('idna').decode('ascii'))
61
- except UnicodeError:
+ except (UnicodeError, AttributeError):
62
return False
0 commit comments