https://gerrit.wikimedia.org/r/80238


---

** [bugs:#1639] generate_family_file.py breaks on **

**Status:** open
**Created:** Tue Jul 02, 2013 09:18 PM UTC by Merlijn S. van Deen
**Last Updated:** Tue Jul 02, 2013 09:18 PM UTC
**Owner:** nobody

Pywikipedia [svn+ssh] valhallasw@trunk/pywikipedia (r11710, 2013/07/02, 
20:55:33, ok)
Python 2.7.3 (default, Aug  1 2012, 05:14:39)
[GCC 4.6.3]
config-settings:
use_api = True
use_api_login = True
unicode test: ok


1) add the following line to user-config.py:
usernames['somewiki']['en'] = u'valhallasw'

2) run generate_family_file.py

Result:
-----------------------------------
Traceback (most recent call last):
  File "generate_family_file.py", line 36, in <module>
    import config
  File "/home/valhallasw/src/pywikipedia/trunk/pywikipedia/config.py", line 
606, in <module>
    execfile(_filename)
  File "./user-config.py", line 5, in <module>
    usernames['somewiki']['en'] = u'valhallasw'
KeyError: 'somewiki'

Expected result:
-----------------------------------
Questions to generate a family file, which might be named 'somewiki' and thus 
make the user-config file correct.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/pywikipediabot/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/pywikipediabot/admin/bugs/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to