Skip to content

Commit

Permalink
conf.py: Prevent traceback if server address is an IPv6 address.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Oct 27, 2012
1 parent d05506e commit 929090c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def normalize(self, s):

def convert(self, s):
s = self.normalize(s)
(server, port) = s.split(':')
(server, port) = s.rsplit(':', 2)
port = int(port)
return (server, port)

Expand Down

0 comments on commit 929090c

Please sign in to comment.