Page MenuHomePhabricator

Harvest_template.py aborts when the value is a red link
Closed, ResolvedPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1664/
Reported by: gerardm
Created on: 2013-08-30 08:05:36.536000
Subject: Harvest_template.py aborts when the value is a red link
Original description:
When the value is a "red link", the bot should continue and preferably write to an error log (for later processing)


Version: core-(2.0)
Severity: normal
See Also:
https://sourceforge.net/p/pywikipediabot/bugs/1664

Details

Reference
bz55124

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:21 AM
bzimport set Reference to bz55124.
  • Group: confirmed --> rewrite

This is still happening in core(rewrite) too.

ERROR: NoPage: Page [[wikidata:-1]] doesn't exist.
Traceback (most recent call last):

File "scripts/harvest_template.py", line 66, in run
  self.processPage(page)
File "scripts/harvest_template.py", line 162, in processPage
  pywikibot.output('Adding %s --> %s' % (claim.getID(), claim.getTarget()))
File "pywikibot/page.py", line 219, in __unicode__
  return self.title(asLink=True, forceInterwiki=True)
File "pywikibot/page.py", line 2407, in title
  self._link._text = self.getID()
File "pywikibot/page.py", line 2506, in getID
  self.get(force=force)
File "pywikibot/page.py", line 2632, in get
  super(ItemPage, self).get(force=force, *args)
File "pywikibot/page.py", line 2470, in get
  raise pywikibot.NoPage(self)

Change 135313 had a related patch set uploaded by John Vandenberg:
Bug 55124: link harvesting bugs

https://gerrit.wikimedia.org/r/135313

Change 135313 merged by jenkins-bot:
Bug 55124: link harvesting bugs

https://gerrit.wikimedia.org/r/135313

All patches mentioned in this report were merged or abandoned - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?

This was fixed in core; if anyone wants it backported to compat, please re-open.

Should we have a whiteboard status, keyword or other marker to indicate 'bugs in compat that have been fixed in core' so the compat-users can easily find patches that they can use if they cant use core?