A quick fix would be to change
host, port = addr
to
host, port = addr[0], addr[1]
(I didn't find a more "pythonic" way to ignore extra elements of addr, but then I'm a Python n00b.)
A quick fix would be to change
host, port = addr
to
host, port = addr[0], addr[1]
(I didn't find a more "pythonic" way to ignore extra elements of addr, but then I'm a Python n00b.)