Pyfisch has submitted this change and it was merged.
Change subject: remove obsolet old_text assignment ......................................................................
remove obsolet old_text assignment
Change-Id: I67c1f254d665e7e2b271e667d4eb5767d194583d --- M scripts/category_redirect.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Pyfisch: Verified; Looks good to me, approved
diff --git a/scripts/category_redirect.py b/scripts/category_redirect.py index 1a018d4..8d3f10a 100755 --- a/scripts/category_redirect.py +++ b/scripts/category_redirect.py @@ -108,7 +108,7 @@ doc = pywikibot.Page(pywikibot.Link(item['title'] + "/doc", self.site)) try: - old_text = doc.get() + doc.get() except pywikibot.Error: continue changed = doc.change_category(oldCat, newCat,
pywikibot-commits@lists.wikimedia.org