Page MenuHomePhabricator halts if target page is a redirect (despite being a valid image embedded on pages)
Open, Needs TriagePublic


The script scrapes the filepath of the image anyway, so there should not be an issue with redirection. Worse case it should just give you the option to skip the file, as in the case of an invalid filename, etc. Traceback is as follows:

0. Found image: [[File:Mith.jpg]]
Traceback (most recent call last):
  File "", line 262, in <module>
    if not main():
  File "", line 255, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "", line 121, in run_python_file
  File "./scripts/", line 331, in <module>
  File "./scripts/", line 327, in main
  File "./scripts/", line 254, in run
  File "./scripts/", line 210, in showImageList
  File "/home/charitwo/pywikibot/pywikibot/tools/", line 1458, in wrapper
    return obj(*__args, **__kw)
  File "/home/charitwo/pywikibot/pywikibot/", line 485, in get
  File "/home/charitwo/pywikibot/pywikibot/", line 523, in _getInternals
    raise self._getexception
pywikibot.exceptions.IsRedirectPage: Page [[en:File:Mith.jpg]] is a redirect page.
<class 'pywikibot.exceptions.IsRedirectPage'>
CRITICAL: Closing network session.
[charitwo@leviathan pywikibot]$