[LNT] r312089 - Do not fail if error result has no 'message' component
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 19:11:36 PDT 2017
Author: matze
Date: Tue Aug 29 19:11:35 2017
New Revision: 312089
URL: http://llvm.org/viewvc/llvm-project?rev=312089&view=rev
Log:
Do not fail if error result has no 'message' component
Modified:
lnt/trunk/lnt/util/ImportData.py
Modified: lnt/trunk/lnt/util/ImportData.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/util/ImportData.py?rev=312089&r1=312088&r2=312089&view=diff
==============================================================================
--- lnt/trunk/lnt/util/ImportData.py (original)
+++ lnt/trunk/lnt/util/ImportData.py Tue Aug 29 19:11:35 2017
@@ -191,8 +191,9 @@ def print_report_result(result, out, err
out.flush()
print >>err, "Import Failed:"
print >>err, "%s\n" % result['error']
- if result['message']:
- print >>err, "%s\n" % result['message']
+ message = result.get('message', None)
+ if message:
+ print >>err, "%s\n" % message
print >>err, "--------------"
err.flush()
return
More information about the llvm-commits
mailing list