Skip to content
Snippets Groups Projects
Commit defc369d authored by Manuel Jacob's avatar Manuel Jacob
Browse files

py3: catch specific OSError subclasses instead of checking errno

On Python 3, the "not a directory" error is mapped to ENOTDIR instead of
EINVAL. Therefore, catching the NotADirectoryError subclass is sufficient.
parent 050dc873
No related branches found
No related tags found
2 merge requests!168branching: merge default into stable,!158Python 3 cleanups (part 2)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment