Skip to content

Commit

Permalink
Fixed error in validip6addr on Windows.
Browse files Browse the repository at this point in the history
closes #308
  • Loading branch information
anandology committed Mar 15, 2015
1 parent f48417e commit 25a5417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/net.py
Expand Up @@ -31,7 +31,7 @@ def validip6addr(address):
"""
try:
socket.inet_pton(socket.AF_INET6, address)
except socket.error:
except (socket.error, AttributeError):
return False

return True
Expand Down

0 comments on commit 25a5417

Please sign in to comment.