changeset 1403:1357d04107d1

pages (blog/view): set empty comments when comments node is missing
author Goffi <goffi@goffi.org>
date Sat, 27 Mar 2021 15:23:49 +0100
parents 388558a30cf8
children 6a35167a4e2c
files libervia/pages/blog/view/page_meta.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/blog/view/page_meta.py	Thu Mar 25 10:29:40 2021 +0100
+++ b/libervia/pages/blog/view/page_meta.py	Sat Mar 27 15:23:49 2021 +0100
@@ -127,6 +127,7 @@
                         service=service,
                         node=node,
                         msg=e))
+                comment_data['items'] = []
                 continue
 
             comments = data_format.deserialise(comments_data)