Last modified: 2014-09-10 02:40:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57124, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55124 - Harvest_template.py aborts when the value is a red link
Harvest_template.py aborts when the value is a red link
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: John Mark Vandenberg
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:28 UTC by Kunal Mehta (Legoktm)
Modified: 2014-09-10 02:40 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:28:43 UTC
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)
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 04:28:44 UTC
- **Group**: confirmed --> rewrite
Comment 2 John Mark Vandenberg 2014-05-25 14:36:46 UTC
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)
Comment 3 Gerrit Notification Bot 2014-05-25 14:52:50 UTC
Change 135313 had a related patch set uploaded by John Vandenberg:
Bug 55124: link harvesting bugs

https://gerrit.wikimedia.org/r/135313
Comment 4 Gerrit Notification Bot 2014-05-27 07:12:53 UTC
Change 135313 merged by jenkins-bot:
Bug 55124: link harvesting bugs

https://gerrit.wikimedia.org/r/135313
Comment 5 Andre Klapper 2014-09-01 12:41:16 UTC
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?
Comment 6 John Mark Vandenberg 2014-09-10 02:40:11 UTC
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?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links