jenkins-bot has submitted this change and it was merged.

Change subject: redirect.py: handle CircularRedirect exception
......................................................................


redirect.py: handle CircularRedirect exception

Handle CircularRedirect exception in get_moved_pages_redirects().

Bug: 69370

Change-Id: I7aa11a88ee9b8f23a9b19edb1343da2ba5ae3378
---
M scripts/redirect.py
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/redirect.py b/scripts/redirect.py
index a1f610f..5524483 100755
--- a/scripts/redirect.py
+++ b/scripts/redirect.py
@@ -367,6 +367,8 @@
             except pywikibot.NoPage:
                 # original title must have been deleted after move
                 continue
+            except pywikibot.CircularRedirect:
+                continue
 
 
 class RedirectRobot(Bot):

-- 
To view, visit https://gerrit.wikimedia.org/r/173451
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I7aa11a88ee9b8f23a9b19edb1343da2ba5ae3378
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to