Skip to content

Check errno values in exceptions against errno.<constant>#71

Open
JonNelson wants to merge 1 commit intoadafruit:mainfrom
JonNelson:fix-None-and-int-comparison
Open

Check errno values in exceptions against errno.<constant>#71
JonNelson wants to merge 1 commit intoadafruit:mainfrom
JonNelson:fix-None-and-int-comparison

Conversation

@JonNelson
Copy link

Don't hard-code errno values, instead refer to the symbols in the errno module. Also, prefer to use the .errno exception instance data member instead of .args[0]; the former is more idiomatic.

Don't hard-code errno values, instead refer to the symbols in the errno
module. Also, prefer to use the `.errno` exception instance data member
instead of `.args[0]`; the former is more idiomatic.
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

Successfully merging this pull request may close these issues.

1 participant