[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2020-06-19 Thread Xqt
Xqt added a comment. This is solved on pywikibot side but is still an upstream issue I guess TASK DETAIL https://phabricator.wikimedia.org/T130911 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: alanajjar, Meno25, Anomie, Dvorapa, jayvdb,

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2019-06-01 Thread gerritbot
gerritbot added a comment. Change 279589 **merged** by jenkins-bot: [pywikibot/core@master] [bugfix] Don't fail missing 'redirects' with RuntimeError https://gerrit.wikimedia.org/r/279589 TASK DETAIL https://phabricator.wikimedia.org/T130911 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2019-02-26 Thread Dvorapa
Dvorapa added a comment. BTW I noticed similar behavior in #mediawiki-search when a redirect is deleted. It emerges as a red link redirect in in the search results for ages too. TASK DETAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2019-02-26 Thread Dvorapa
Dvorapa added a comment. The redirect was just removed, ut the linktable seems to be never updated? TASK DETAIL https://phabricator.wikimedia.org/T130911 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt, Dvorapa Cc: Dvorapa, jayvdb, gerritbot,

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2019-02-26 Thread Xqt
Xqt added a comment. and again: C:\pwb\GIT\core>pwb.py redirect.py do -simulate -lang:pa Retrieving double redirect special page... Retrieving 25 pages from wikipedia:pa. >>> ਅਨਾਤੋਲੇ ਫ਼ਰਾਂਸ <<< ERROR: Page [[pa:ਅਨਾਤੋਲੇ ਫ਼ਰਾਂਸ]] is a circular redirect.

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2018-09-04 Thread Xqt
Xqt added a comment. See also this traceback: C:\pwb\GIT\core>py -3 pwb.py redirect -lang:tg do -simulate Retrieving double redirect special page... Retrieving 24 pages from wikipedia:tg. >>> Лоиҳа:Тоҷикистон <<< 1 pages read 0 pages written Execution time: 0 seconds Read operation time: 0

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2016-05-25 Thread jayvdb
jayvdb added a comment. An alternative solution is to del the `_isredir` of every page emitted by `APISite.broken_redirects`, which will cause the page info to be loaded on demand with the correct `redirect` status. That is IMO the 'correct' solution, because we know the special page emit

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2016-05-24 Thread jayvdb
jayvdb added a comment. https://ar.wikipedia.org/w/api.php?action=query=querypage=BrokenRedirects=100=info currently contains "2683712": { "pageid": 2683712, "ns": 105, "title": ":\u0623\u0635\u0648\u0627\u062a

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2016-05-24 Thread jayvdb
jayvdb added a comment. After that, calling `site.loadpageinfo(page)` changes `page._isredir` to False Just noting there is a hack in `APISite.page_isredirect` intended to help with a similar type of problem. https://gerrit.wikimedia.org/r/#/c/101784/ That means page._isredir is being

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2016-05-24 Thread jayvdb
jayvdb added a comment. I can reproduce the problem with site = pywikibot.Site('ar', 'wikipedia') for page in site.broken_redirects(): if page.isRedirectPage(): try: redir = site.getredirtarget(page) except Exception as e:

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2016-03-25 Thread gerritbot
gerritbot added a comment. Change 279589 had a related patch set uploaded (by Xqt): [bugfix] Don't fail missing 'redirects' with RuntimeError https://gerrit.wikimedia.org/r/279589 TASK DETAIL https://phabricator.wikimedia.org/T130911 EMAIL PREFERENCES

[Pywikipedia-bugs] [Maniphest] [Commented On] T130911: redirect.py fails for RuntimeError

2016-03-25 Thread Xqt
Xqt added a comment. Sometimes Site.broken_redirects() returns pages which wrongly are marked as redirects: >>> from __future__ import unicode_literals >>> import pwb, pywikibot as py >>> s = py.Site('ar') >>> for page in s.broken_redirects(): if