diff piecrust/data/debug.py @ 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 eedd63b7cf42
children 05fba0b8e21c
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>')