Skip to content

Better exceptions for 'socket', 'network', 'wiznet' libraries #1880

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

Closed
nickzoic opened this issue May 13, 2019 · 0 comments · Fixed by #5036
Closed

Better exceptions for 'socket', 'network', 'wiznet' libraries #1880

nickzoic opened this issue May 13, 2019 · 0 comments · Fixed by #5036

Comments

@nickzoic
Copy link

At the moment, the exceptions raised by 'socket', 'network' and 'wiznet' libraries are mostly just in the form mp_raise_OSError(_errno) which leads to irritatingly nonspecific exceptions like OSError: [Errno 4].

We should improve these to have proper error messages.

See also #703 (initial implementation from micropython) #1800 (bugfixes for 4.0.0)

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

Successfully merging a pull request may close this issue.

2 participants