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