[3.7] bpo-35942: Improve the error message if __fspath__ returns invalid types in path_converter (GH-11831) by miss-islington · Pull Request #11912 · python/cpython

@pablogsal @miss-islington

…pes in path_converter (pythonGH-11831)

The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error.
(cherry picked from commit 09fbcd6)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>

@bedevere-bot mentioned this pull request

Feb 18, 2019

pablogsal