Closed GoogleCodeExporter closed 9 years ago
Original comment by ikarpov
on 4 Dec 2011 at 6:52
Same error for me, both in NERO training and battle:
File "NERO_Battle/main.py", line 22, in ModTick
data = script_server.read_data()
Original comment by oppili...@gmail.com
on 8 Dec 2011 at 11:58
This seems to be happening because of the exception handling code:
except socket.error, e:
print 'ScriptServer socket error'
self.inputs.remove(e)
self.outputs.remove(e)
which erroneously assumes that "e" is the socket value. Instead, socket.error
exceptions have a string error message accompanying them, or a (errno, message)
- in this case "e".
Attached a patch to correctly close/remove the socket "s" and log the error
message.
Original comment by cafede...@gmail.com
on 12 Dec 2011 at 4:55
Attachments:
r1567 applies this patch, please verify...
Original comment by ikarpov
on 12 Dec 2011 at 3:23
Ok, now it works!
Original comment by oppili...@gmail.com
on 15 Dec 2011 at 12:32
Original issue reported on code.google.com by
eriktash...@hotmail.com
on 4 Dec 2011 at 5:50