Skip to content

Code is unreachable Pylance on Server.py #75

@Senophyx

Description

@Senophyx

https://github.com/x4nth055/pythoncode-tutorials/blob/master/python-standard-library/chat-application/server.py

When I put all the code in server.py into VSCode, it suddenly shows an error Code is unreachable Pylance and it seems because while True: before :

# close client sockets
for cs in client_sockets:
    cs.close()
# close server socket
s.close()

Can you update the code again, I need it :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions