diff --git a/Gmeek.py b/Gmeek.py index 8fb807e..0f9179a 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -484,10 +484,12 @@ def createFileName(self,issue,useLabel=False): del blog.blogBase["postListJson"][i]["createdAt"] del blog.blogBase["postListJson"][i]["script"] del blog.blogBase["postListJson"][i]["style"] - del blog.blogBase["postListJson"][i]["head"] del blog.blogBase["postListJson"][i]["top"] del blog.blogBase["postListJson"][i]["ogImage"] + if 'head' in blog.blogBase["postListJson"][i]: + del blog.blogBase["postListJson"][i]["head"] + if 'commentNum' in blog.blogBase["postListJson"][i]: commentNumSum=commentNumSum+blog.blogBase["postListJson"][i]["commentNum"] del blog.blogBase["postListJson"][i]["commentNum"]