Message181762
| 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:37 | thomas.scrace | set | recipients:
+ thomas.scrace, terry.reedy |
| 2013年02月09日 21:12:37 | thomas.scrace | set | messageid: <1360444357.09.0.528759954869.issue17174@psf.upfronthosting.co.za> |
| 2013年02月09日 21:12:37 | thomas.scrace | link | issue17174 messages |
| 2013年02月09日 21:12:36 | thomas.scrace | create |
|