File "C:\Users\Hui\Desktop\py\aa.py", line 55, in <module>
main()
File "C:\Users\Hui\Desktop\py\aa.py", line 27, in main
s.connect((host, port))
File "E:\Python27\lib\socket.py", line 222, in meth
return getattr(self._sock,name)(*args)
TypeError: coercing to Unicode: need string or buffer, NoneType found