Merge branch 'master' into develop
This commit is contained in:
commit
9ae3a7dbff
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ def _validate_domain(domain):
|
|||
socket.inet_pton(socket.AF_INET6, domain.strip('[]'))
|
||||
domain = '[%s]' % domain.strip('[]')
|
||||
ip_addr = True
|
||||
except socket.error:
|
||||
except (socket.error, ValueError):
|
||||
pass
|
||||
|
||||
if not ip_addr:
|
||||
|
|
Loading…
Reference in a new issue