This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tomasfarias
Recipients tomasfarias
Date 2019-11-15.01:02:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573779750.02.0.708670809394.issue38807@roundup.psfhosted.org>
In-reply-to
Content
Passing an object with an invalid type, like None, to os.path.join after the first argument results in the following exception: 

TypeError: join() argument must be str or bytes, not 'NoneType'

Exception message can be updated to show that os.PathLike objects can be used:

TypeError: join() argument must be str, bytes or os.PathLike object, not 'NoneType'

This is also more consistent with the TypeError raised by os.fspath.
History
Date User Action Args
2019-11-15 01:02:30tomasfariassetrecipients: + tomasfarias
2019-11-15 01:02:30tomasfariassetmessageid: <1573779750.02.0.708670809394.issue38807@roundup.psfhosted.org>
2019-11-15 01:02:29tomasfariaslinkissue38807 messages
2019-11-15 01:02:29tomasfariascreate