Last modified: 2014-11-01 12:36:26 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 T74860, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72860 - KeyError in Siteinfo when network errors are occurring
KeyError in Siteinfo when network errors are occurring
Status: NEW
Product: Pywikibot
Classification: Unclassified
network (Other open bugs)
core-(2.0)
All All
: Low normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-01 12:34 UTC by John Mark Vandenberg
Modified: 2014-11-01 12:36 UTC (History)
0 users

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


Attachments

Description John Mark Vandenberg 2014-11-01 12:34:44 UTC
An example

ERROR: test_fully_qualified_NS1_family (tests.link_tests.TestFullyQualifiedNoLangFamilyExplicitLinkParser)
Test ':wikidata:testwiki:Talk:Q6' on enwp is namespace 1.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/wikimedia/pywikibot-core/tests/link_tests.py", line 372, in test_fully_qualified_NS1_family
    link.parse()
  File "/home/travis/build/wikimedia/pywikibot-core/pywikibot/page.py", line 4154, in parse
    if hasattr(self._site.namespaces()[self._namespace], 'case'):
KeyError: 0

Many more here:

https://travis-ci.org/wikimedia/pywikibot-core/jobs/39676782

And I'm quite confident there was another build in the last few weeks which has done this.
Comment 1 John Mark Vandenberg 2014-11-01 12:36:26 UTC
It isnt happening frequently, and the solution is probably to fail with a different exception, so this isnt probably not critical to fix. (But bot operators do complain when they bots fall over half way through month long tasks because of a server problem)

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


Navigation
Links