conf.py: Prevent traceback if server address is an IPv6 address.

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
Valentin Lorentz 2012-10-27 17:59:05 +02:00 committed by James McCoy
parent c68afacc0f
commit ac13d09511

View File

@ -223,7 +223,7 @@ class Servers(registry.SpaceSeparatedListOfStrings):
def convert(self, s):
s = self.normalize(s)
(server, port) = s.split(':')
(server, port) = s.rsplit(':', 2)
port = int(port)
return (server, port)