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 thomas.scrace
Recipients terry.reedy, thomas.scrace
Date 2013-02-09.21:12:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360444357.09.0.528759954869.issue17174@psf.upfronthosting.co.za>
In-reply-to
Content
Currently os.path.join will raise an AttributeError if passed an argument that does not have an endswith() method.

A try/except around the offending line would let us raise a more helpful TypeError:

    except AttributeError as e:
        bad = e.args[0].split()[0]
        raise TypeError("object of type {} is not valid as a path"
        "component".format(type(bad)))
History
Date User Action Args
2013-02-09 21:12:37thomas.scracesetrecipients: + thomas.scrace, terry.reedy
2013-02-09 21:12:37thomas.scracesetmessageid: <1360444357.09.0.528759954869.issue17174@psf.upfronthosting.co.za>
2013-02-09 21:12:37thomas.scracelinkissue17174 messages
2013-02-09 21:12:36thomas.scracecreate