Sfoglia il codice sorgente

banner_untag: Fix when page is deleted.

main
Ben Kurtovic 7 anni fa
parent
commit
5600eb14c1
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      tasks/banner_untag.py

+ 5
- 0
tasks/banner_untag.py Vedi File

@@ -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"]


Caricamento…
Annulla
Salva