Message181762
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))) |
|
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 | |
|