Mercurial > bitten > bitten-test
changeset 728:1701dda85af3
Slightly more careful when reading JUnit xml as 'message' attribute may not always exist. Closes #177.
author | osimons |
---|---|
date | Thu, 11 Feb 2010 17:05:02 +0000 |
parents | 508636ffbf11 |
children | 6b3de00356d1 |
files | bitten/build/javatools.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/build/javatools.py +++ b/bitten/build/javatools.py @@ -135,7 +135,7 @@ # Sometimes the traceback isn't prefixed with the # exception type and message, so add it in if needed tracebackprefix = "%s: %s" % (result[0].attr['type'], - result[0].attr['message']) + result[0].attr.get('message', '')) if result[0].gettext().startswith(tracebackprefix): test.append(xmlio.Element('traceback')[ result[0].gettext()])