https://bugzilla.wikimedia.org/show_bug.cgi?id=72860
Bug ID: 72860 Summary: KeyError in Siteinfo when network errors are occurring Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: network Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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.