Page MenuHomePhabricator

Invalid link found while title parsing
Open, HighPublic

Description

Externsteine -> no corresponding page in wikipedia:bn
** wikipedia:an has 0 good articles
** wikipedia:ar has 233 good articles
Retrieving 50 pages from wikipedia:ar.
أحمد ياسين -> no corresponding page in wikipedia:bn
الإخوان المسلمون -> corresponding page is মুসলিম ব্রাদারহুড
Traceback (most recent call last):
  File "C:\pwb\core\pwb.py", line 104, in <module>
    run_python_file(fn, args)
  File "C:\pwb\core\pwb.py", line 49, in run_python_file
    exec compile(source, filename, "exec") in main_mod.__dict__
  File "C:\pwb\core\scripts\featured.py", line 672, in <module>
    main()
  File "C:\pwb\core\scripts\featured.py", line 665, in main
    bot.run()
  File "C:\pwb\core\scripts\featured.py", line 278, in run
    self.run_good()
  File "C:\pwb\core\scripts\featured.py", line 313, in run_good
    self.treat(code, task)
  File "C:\pwb\core\scripts\featured.py", line 359, in treat
    self.featuredWithInterwiki(fromsite, process)
  File "C:\pwb\core\scripts\featured.py", line 601, in featuredWithInterwiki
    atrans.put(text, comment)
  File "C:\pwb\core\pywikibot\page.py", line 898, in put
    async=async, callback=callback, **kwargs)
  File "C:\pwb\core\pywikibot\page.py", line 821, in save
    **kwargs)
  File "C:\pwb\core\pywikibot\page.py", line 827, in _save
    comment = self._cosmetic_changes_hook(comment) or comment
  File "C:\pwb\core\pywikibot\page.py", line 877, in _cosmetic_changes_hook
    self.text = ccToolkit.change(old)
  File "C:\pwb\core\scripts\cosmetic_changes.py", line 174, in change
    text = self.cleanUpLinks(text)
  File "C:\pwb\core\scripts\cosmetic_changes.py", line 508, in cleanUpLinks
    'startspace'])
  File "C:\pwb\core\pywikibot\textlib.py", line 199, in replaceExcept
    replacement = new(match)
  File "C:\pwb\core\scripts\cosmetic_changes.py", line 403, in handleOneLink
    namespace = page.namespace()
  File "C:\pwb\core\pywikibot\page.py", line 114, in namespace
    return self._link.namespace
  File "C:\pwb\core\pywikibot\page.py", line 3256, in namespace
    self.parse()
  File "C:\pwb\core\pywikibot\page.py", line 3241, in parse
    % self._text)
pywikibot.exceptions.Error: Invalid link (no page title): '&#2476;&#2495;&#2487;&#2479;&#2492;&#2486;&#2509;&#2480;&#2503;&#2467;&#2496;:'
Exception TypeError: TypeError("'NoneType' object is not callable",) in <bound method ConnectionPool.__del__ of {'https:ar.wikipedia.org': [<httplib2.python2.httplib2.HTTPSConnectionWithTimeout instance at 0x0000000006662AC8>], 'https:bn.wikipedia.org': [<httplib2.python2.httplib2.HTTPSConnectionWithTimeout instance at 0x0000000002AA4E88>], 'https:als.wikipedia.org': [<httplib2.python2.httplib2.HT
TPSConnectionWithTimeout instance at 0x0000000005745C08>], 'https:www.wikidata.org': [<httplib2.python2.httplib2.HTTPSConnectionWithTimeout instance at 0x0000000002C4B148>], 'https:an.wikipedia.org': [<httplib2.python2.httplib2.HTTPSConnectionWithTimeout instance at 0x000000000666C488>]}> ignored

Version: core-(2.0)
Severity: normal

Details

Reference
bz55836

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:13 AM
bzimport set Reference to bz55836.
bzimport added a subscriber: Unknown Object (????).
Xqt created this task.Oct 17 2013, 12:49 PM
jayvdb raised the priority of this task from Medium to Needs Triage.Nov 29 2014, 7:53 AM
jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).
jayvdb triaged this task as High priority.Jul 5 2015, 10:51 PM
jayvdb updated the task description. (Show Details)
jayvdb removed a project: Pywikibot-General.
Dvorapa added a comment.EditedJun 3 2018, 11:13 AM

It seems partially the same as T60574 and partially an error of featured.py/cosmetic_changes.py as Error: Invalid link (no page title) is completely correct and should be passed.