fix: 修复编辑issue内容后触发workflow时报[KeyError: 'ogImage']的错误

This commit is contained in:
wuyiwai 2024-06-04 01:41:25 +08:00
parent 8e6813fd7c
commit ea2671c284

View File

@ -460,6 +460,8 @@ for i in blog.blogBase["postListJson"]:
del blog.blogBase["postListJson"][i]["script"]
del blog.blogBase["postListJson"][i]["style"]
del blog.blogBase["postListJson"][i]["top"]
if 'ogImage' in blog.blogBase["postListJson"][i]:
del blog.blogBase["postListJson"][i]["ogImage"]
if 'commentNum' in blog.blogBase["postListJson"][i]: