fix: 修复编辑issue内容后触发workflow时报[KeyError: 'ogImage']的错误
This commit is contained in:
parent
8e6813fd7c
commit
ea2671c284
4
Gmeek.py
4
Gmeek.py
@ -460,7 +460,9 @@ for i in blog.blogBase["postListJson"]:
|
|||||||
del blog.blogBase["postListJson"][i]["script"]
|
del blog.blogBase["postListJson"][i]["script"]
|
||||||
del blog.blogBase["postListJson"][i]["style"]
|
del blog.blogBase["postListJson"][i]["style"]
|
||||||
del blog.blogBase["postListJson"][i]["top"]
|
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]:
|
if 'commentNum' in blog.blogBase["postListJson"][i]:
|
||||||
commentNumSum=commentNumSum+blog.blogBase["postListJson"][i]["commentNum"]
|
commentNumSum=commentNumSum+blog.blogBase["postListJson"][i]["commentNum"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user