Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows, Python 3] When GreenSocket raises socket.error, the winerror attribute is not set correctly #496

Open
yoni1 opened this issue Jun 6, 2018 · 0 comments

Comments

@yoni1
Copy link

yoni1 commented Jun 6, 2018

GreenSocket is "intended to be 100% API-compatible" with socket.socket, according to its docstring.

Starting in Python 3.3, socket.error is no longer a separate class but merged with OSError (and in Windows, merged also with WindowsError). Thus, in Windows, this exception has an attribute winerror in addition to the usual errno.

OS exceptions raised from the regular socket.socket have this winerror attribute set. However, OS exceptions raised from GreenSocket do not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant