https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
Bug ID: 69370 Summary: Unexpected CircularRedirect exception Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: redirect.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: info@gno.de Web browser: --- Mobile Platform: ---
redirect.py get an unexpected CircularRedirect exception:
User:EvanBlass/sandbox <<<
Links to: [[Draft:Evan Blass]]. Links to: [[Evan Blass]]. - #REDIRECT [[Draft:Evan Blass]] + #REDIRECT [[Evan Blass]]
.Page [[User:EvanBlass/sandbox]] saved ..Traceback (most recent call last): File "C:\pwb\core\pwb.py", line 171, in <module> run_python_file(fn, argv, argvu) File "C:\pwb\core\pwb.py", line 69, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "C:\pwb\core\scripts\redirect.py", line 820, in <module> main() File "C:\pwb\core\scripts\redirect.py", line 817, in main bot.run() File "C:\pwb\core\scripts\redirect.py", line 726, in run self.fix_double_redirects() File "C:\pwb\core\scripts\redirect.py", line 535, in fix_double_redirects for redir_name in self.generator.retrieve_double_redirects(): File "C:\pwb\core\scripts\redirect.py", line 305, in retrieve_double_redirects
for redir_page in gen: File "C:\pwb\core\scripts\redirect.py", line 365, in get_moved_pages_redirects
redirectsOnly=True): File "C:\pwb\core\pywikibot\page.py", line 770, in getReferences content=content File "C:\pwb\core\pywikibot\site.py", line 1997, in pagereferences namespaces=namespaces, step=step, content=content), File "C:\pwb\core\pywikibot\site.py", line 1946, in pagebacklinks if redir.getRedirectTarget() == page: File "C:\pwb\core\pywikibot\page.py", line 1322, in getRedirectTarget return self.site.getredirtarget(self) File "C:\pwb\core\pywikibot\site.py", line 1800, in getredirtarget raise pywikibot.CircularRedirect(target_title) pywikibot.exceptions.CircularRedirect: Page User talk:Belam is a circular redire ct. <class 'pywikibot.exceptions.CircularRedirect'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal
https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mpaa.wiki@gmail.com
--- Comment #1 from Mpaa mpaa.wiki@gmail.com --- Isn't it the expectd behaviour?
The page was actually redirecting to itself.
https://en.wikipedia.org/w/index.php?title=User_talk:Belam&action=histor... (removed invalid redirect (redirect to self)
https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jayvdb@gmail.com Resolution|--- |INVALID
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- per comment 1
https://bugzilla.wikimedia.org/show_bug.cgi?id=69370
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- Summary|Unexpected CircularRedirect |Unhandled CircularRedirect |exception |exception in redirect.py
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- Ah, the problem is that the exception occurred in a place that redirect.py doesnt handle it!
pywikipedia-bugs@lists.wikimedia.org