This is not a duplicate.
I have searched for literally hours to find the answer and no luck so I'm asking here.
I am currently building a chat server using python's socket module. When I run the server, after the client connects and the server says so, I receive an exception:
[WinError 10038] An operation was attempted on something that is not a socket
I have built a drastically reduced server and it works where this server does not. This has confused me as it is doing the same thing nearly line for line.
Simplified: