From 3d78e21af79d680c384a2872f362ac9aa9bf5c12 Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Fri, 1 Apr 2011 21:47:50 -0400 Subject: [PATCH] fixed contrib/testRender.py crashing when -l isn't specified --- contrib/testRender.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/testRender.py b/contrib/testRender.py index 7646dad..2ea0e87 100644 --- a/contrib/testRender.py +++ b/contrib/testRender.py @@ -131,7 +131,8 @@ try: print "... done" stats = get_stats(timelist) print stats - log.write("%s %s\n" % (commit, repr(stats))) + if log: + log.write("%s %s\n" % (commit, repr(stats))) except CalledProcessError, e: if options.fatal_errors: print