[Pywikipedia-l] [ pywikipediabot-Bugs-1877535 ] Crashing on unexist language

SourceForge.net noreply at sourceforge.net
Tue Jan 22 18:10:10 UTC 2008


Bugs item #1877535, was opened at 2008-01-22 10:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crashing on unexist language

Initial Comment:
Interwiki.py is crashing on projects which does not exist. I hope it skip the page for longer working.

This the output when I'm working on wiktionary:

Getting 1 pages from wiktionary:sco...
Wiki <wikipedia._GetAll object at 0x1441cd0> does not exist yet
Dump ar (wiktionary) saved
Traceback (most recent call last):
  File "interwiki.py", line 1609, in ?
    bot.run()
  File "interwiki.py", line 1384, in run
    self.queryStep()
  File "interwiki.py", line 1363, in queryStep
    subj.finish(self)
  File "interwiki.py", line 967, in finish
    if self.replaceLinks(page, new, bot):
  File "interwiki.py", line 1094, in replaceLinks
    qdone = bot.oneQuery()
  File "interwiki.py", line 1354, in oneQuery
    subject.workDone(self)
  File "interwiki.py", line 671, in workDone
    iw = page.interwiki()
  File "/pywikipedia/wikipedia.py", line 1424, in interwiki
    ll = getLanguageLinks(self.get(), insite=self.site(),
  File "/pywikipedia/wikipedia.py", line 603, in get
    self._contents = self._getEditPage(get_redirect = get_redirect, throttle = throttle, sysop = sysop, nofollow_redirects=nofollow_redirects)
  File "/pywikipedia/wikipedia.py", line 659, in _getEditPage
    raise NoSuchSite(u'Wiki %s does not exist yet' % self.site())
wikipedia.NoSuchSite: Wiki wiktionary:sco does not exist yet

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1877535&group_id=93107



More information about the Pywikipedia-l mailing list