# HG changeset patch # User Ludovic Chabant # Date 1494534101 25200 # Node ID d91e013b586ac243dde985a9e7c73bbbbb314676 # Parent e053a27e5aaed6a8a6217f27e606d8e694cff46c serve: Fix crash when displaying empty dictionaries in the debug info. diff -r e053a27e5aae -r d91e013b586a piecrust/data/debug.py --- 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('

(empty dictionary)

' % + self._writeLine('

(empty dictionary)

' % CSS_DOC) self._writeLine('')