diff --git a/Gmeek.py b/Gmeek.py index 3a8dc43..3bbdb3e 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -460,7 +460,9 @@ for i in blog.blogBase["postListJson"]: del blog.blogBase["postListJson"][i]["script"] del blog.blogBase["postListJson"][i]["style"] del blog.blogBase["postListJson"][i]["top"] - del blog.blogBase["postListJson"][i]["ogImage"] + + if 'ogImage' in blog.blogBase["postListJson"][i]: + del blog.blogBase["postListJson"][i]["ogImage"] if 'commentNum' in blog.blogBase["postListJson"][i]: commentNumSum=commentNumSum+blog.blogBase["postListJson"][i]["commentNum"]