Como resolver o erro deste socket ftp do lado do servidor?

import socket
#try:

create a socket object

serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

get local machine name

host = socket.gethostname()
port = 80

bind to the port

serversocket.bind((host, port))

queue up to 5 requests

serversocket.listen(0)
while True:
# establish a connection
clientsocket,addr = serversocket.accept()
print(“Got a connection from %s” % str(addr))
msg=‘Thank you for connecting’+ "\r\n"
clientsocket.send(msg.encode(‘ascii’))
clientsocket.close()

pessoal eliminem o ‘try:’ daí de cima, e se consiguirem arrumar esse bug, me ajudem por favor!
este codigo ai e do python desculpe por por topico java