New submission from Tomás Farías <tomasfariassant...@gmail.com>: 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. ---------- components: Library (Lib) messages: 356640 nosy: tomasfarias priority: normal severity: normal status: open title: Better exception message in os.path.join type: enhancement versions: Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38807> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com