https://bugzilla.wikimedia.org/show_bug.cgi?id=68440

            Bug ID: 68440
           Summary: Site().get_category_redirects() KeyError
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

As the subject line says -- I don't know which commit caused this, but it has
to have been within the past 24 hours or so; this error is occurring on Tools
Labs, which I believe is updated from the git repository daily.

Python 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pywikibot
>>> s = pywikibot.Site()
>>> s
Site("en", "wikipedia")
>>> s.category_redirects()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/shared/pywikipedia/rewrite/pywikibot/site.py", line 250, in <lambda>
    f = lambda *args, **kwargs: method(self.code, *args, **kwargs)
  File "/shared/pywikipedia/rewrite/pywikibot/family.py", line 877, in
category_redirects
    self.get_cr_templates(code, fallback)
  File "/shared/pywikipedia/rewrite/pywikibot/family.py", line 896, in
get_cr_templates
    cr_page = pywikibot.Page(pywikibot.Site(code, self),
  File "/shared/pywikipedia/rewrite/pywikibot/__init__.py", line 468, in Site
    user = user or config.usernames[fam].get(code, None) \
KeyError: Family("wikipedia")

version.py outputs:

Pywikibot: [https] r-p-pywikibot-core.git (64df203, g3569, 2014/07/22,
15:07:48, ok)
Release version: 2.0b1
Python: 2.7.3 (default, Feb 27 2014, 19:58:35) 
[GCC 4.6.3]
unicode test: ok

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to