瀏覽代碼

banner_untag: Fix when page is deleted.

main
Ben Kurtovic 7 年之前
父節點
當前提交
5600eb14c1
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      tasks/banner_untag.py

+ 5
- 0
tasks/banner_untag.py 查看文件

@@ -67,6 +67,11 @@ class BannerUntag(Task):
stage2 = []
for pagedata in res["query"]["pages"]:
pageid = pagedata["pageid"]
if "title" not in pagedata:
self.logger.info(u"Skipping [[%s]], doesn't exist" % title)
donefile.write("%d\n" % pageid)
continue

title = pagedata["title"]
revid = pagedata["revisions"][0]["revid"]
parentid = pagedata["revisions"][0]["parentid"]


Loading…
取消
儲存