There was an error while loading. Please reload this page.
1 parent d076492 commit b347872Copy full SHA for b347872
pymongo/uri_parser.py
@@ -97,8 +97,9 @@ def parse_ipv6_literal_host(entity, default_port):
97
specified in entity.
98
"""
99
if entity.find(']') == -1:
100
- raise InvalidURI("an IPv6 address literal must be "
101
- "enclosed in '[' and ']' according to RFC 2732.")
+ raise ConfigurationError("an IPv6 address literal must be "
+ "enclosed in '[' and ']' according "
102
+ "to RFC 2732.")
103
i = entity.find(']:')
104
if i == -1:
105
return entity[1:-1], default_port
0 commit comments