Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r48054:91de2938fbfc Date: 2011-10-14 15:00 +0200 http://bitbucket.org/pypy/pypy/changeset/91de2938fbfc/
Log: Fix. diff --git a/pypy/tool/logparser.py b/pypy/tool/logparser.py --- a/pypy/tool/logparser.py +++ b/pypy/tool/logparser.py @@ -298,6 +298,8 @@ image.paste(textpercent, (t1x, 5), textpercent) image.paste(textlabel, (t2x, 5), textlabel) images.append(image) + if not images: + return None return combine(images, spacing=0, border=1, horizontal=False) def get_timesummary_single_image(totaltimes, totaltime0, componentdict, @@ -333,6 +335,8 @@ del totaltimes[None] img2 = render_histogram(totaltimes, totaltime0, {}, width, summarybarheight) + if img2 is None: + return img1 return combine([img1, img2], spacing=spacing, horizontal=True) # ---------- _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit