Commit 2433b84f authored by Alexandre's avatar Alexandre
Browse files

Remove unused CustomException call

parent 1c44e165
......@@ -268,9 +268,6 @@ def get_addrfamily(addr, dot=False):
elif opts.forceIPv6 and family == 4:
raise CustomException("You cannot force IPv6 with a litteral IPv4 address (%s)" % addr)
if not is_ip and not dot:
raise CustomException("%s is not IPv4 and not IPv6" % addr)
if opts.forceIPv4 or family == 4:
family = socket.AF_INET
elif opts.forceIPv6 or family == 6:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment