Mercurial > piecrust2
changeset 914:d91e013b586a
serve: Fix crash when displaying empty dictionaries in the debug info.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 11 May 2017 13:21:41 -0700 |
parents | e053a27e5aae |
children | b447c24bc8d4 5d867e6ed83f |
files | piecrust/data/debug.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/data/debug.py Thu May 11 13:21:18 2017 -0700 +++ b/piecrust/data/debug.py Thu May 11 13:21:41 2017 -0700 @@ -219,7 +219,7 @@ lambda d: sorted(iter(d.items()), key=lambda i: i[0])) if (rendered_count == 0 and not hasattr(data.__class__, 'debug_render_not_empty')): - self._writeLine('<p class="%s %s">(empty dictionary)</p>' % + self._writeLine('<p class="%s">(empty dictionary)</p>' % CSS_DOC) self._writeLine('</div>')