Meno25 added a comment.

  Just a note that this issue is still current and that it affects the script 
`fixing_redirects.py` as well.
  
  **Command line:**
  
    python pwb.py fixing_redirects -lang:arz -start:!
  
  **Output:**
  
    ERROR: InterwikiRedirectPage: Page redirects to a page on another Site.
    Page: [[arz:مساعدة:CS1 errors]]
    Target page: [[en:Help:CS1 errors]] on wikipedia:en.
    Traceback (most recent call last):
      File "C:\Users\Mohammed\core\pwb.py", line 364, in <module>
        if not main():
      File "C:\Users\Mohammed\core\pwb.py", line 356, in main
        run_python_file(filename,
      File "C:\Users\Mohammed\core\pwb.py", line 74, in run_python_file
        exec(compile(source, filename, 'exec', dont_inherit=True),
      File ".\scripts\fixing_redirects.py", line 231, in <module>
        main()
      File ".\scripts\fixing_redirects.py", line 225, in main
        bot.run()
      File "C:\Users\Mohammed\core\pywikibot\bot.py", line 1495, in run
        self.treat(page)
      File "C:\Users\Mohammed\core\pywikibot\bot.py", line 1774, in treat
        self.treat_page()
      File ".\scripts\fixing_redirects.py", line 165, in treat_page
        target = self.get_target(page)
      File ".\scripts\fixing_redirects.py", line 142, in get_target
        target = page.getRedirectTarget()
      File "C:\Users\Mohammed\core\pywikibot\page\__init__.py", line 1561, in 
getRedirectTarget
        return self.site.getredirtarget(self)
      File "C:\Users\Mohammed\core\pywikibot\site\_apisite.py", line 1265, in 
getredirtarget
        raise InterwikiRedirectPage(page, target)
    pywikibot.exceptions.InterwikiRedirectPage: Page redirects to a page on 
another Site.
    Page: [[arz:مساعدة:CS1 errors]]
    Target page: [[en:Help:CS1 errors]] on wikipedia:en.
    CRITICAL: Exiting due to uncaught exception <class 
'pywikibot.exceptions.InterwikiRedirectPage'>
  
  **Output of version.py:**
  
    Pywikibot: [https] r-pywikibot-core (e12ebe0, g14693, 2021/04/17, 20:17:21, 
master)
    Release version: 6.1.1.dev0
    requests version: 2.25.1
        certificate test: ok
    Python: 3.9.4 (tags/v3.9.4:1f2e308, Apr  4 2021, 13:27:16) [MSC v.1928 64 
bit (AMD64)]

TASK DETAIL
  https://phabricator.wikimedia.org/T137754

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Meno25, whym, Aklapper, Zppix, pywikibot-bugs-list, Thibaut120094, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to