changeset 875:7169bf42ec60

showrecord: Prevent a crash.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 15 Jun 2017 07:32:19 -0700
parents f4608e2e80ce
children d1095774bfcf
files piecrust/pipelines/_pagerecords.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/pipelines/_pagerecords.py	Thu Jun 15 07:31:50 2017 -0700
+++ b/piecrust/pipelines/_pagerecords.py	Thu Jun 15 07:32:19 2017 -0700
@@ -137,6 +137,8 @@
 
 
 def _describe_render_info(ri):
+    if ri is None:
+        return '<null>'
     return {
         'UsedPagination': ri.used_pagination,
         'PaginationHasMore': ri.pagination_has_more,