Bugs item #2929350, was opened at 2010-01-10 17:41 Message generated for change (Comment added) made by valhallasw You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2929350...
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: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: KeyError in userlib.py
Initial Comment: try to block a user with : badUser = userlib.User(site=self.mySite, name="123.123.123.123") badUser.block(expiry="2 hours", reason="did bad things", noCreate=True, onAutoblock=True, allowUsertalk=False)
You will get an KeyError. This is a patch for solving the problem.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw)
Date: 2010-03-06 00:40
Message: The API does not allow IP users. Please re-open when this changes. userlib.py rr7979 now throws an exception when IP users are used.
----------------------------------------------------------------------
Comment By: Merlijn S. van Deen (valhallasw) Date: 2010-03-05 23:48
Message: Moved to 'bugs'. The proposed solution merely hides the problem instead of solving it.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2929350...
pywikipedia-bugs@lists.wikimedia.org