Last modified: 2013-10-05 04:50:14 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 T57245, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55245 - Unrecognised values for parameter 'usprop'
Unrecognised values for parameter 'usprop'
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 04:50 UTC by Kunal Mehta (Legoktm)
Modified: 2013-10-05 04:50 UTC (History)
0 users

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


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 04:50:11 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1306/
Reported by: clabaut
Created on: 2011-04-07 06:56:31
Subject: Unrecognised values for parameter 'usprop'
Original description:
Traceback \(most recent call last\):
File "./unspam.py", line 324, in <module>
main\(\)
File "./unspam.py", line 318, in main
bot.run\(\)
File "./unspam.py", line 159, in run
onAutoblock=True\)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 381, in block
if self.isBlocked\(\) and not reBlock:
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 121, in isBlocked
self.\_load\(\)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 96, in \_load
getall\(self.site\(\), \[self\], force=True\)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 538, in getall
\_GetAllUI\(site, users, throttle, force\).run\(\)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 557, in run
data = self.getData\(\)
File "/home/clabaut/deploy/pywikipedia-svn/userlib.py", line 591, in getData
for user in data\['query'\]\['users'\]:
KeyError: 'query'

Where data contains : \{u'error': \{u'info': u"Unrecognised values for parameter 'usprop'", u'code': u'usunknown\_usprop'\}\}
When talking to a 1.12.0 mediawiki.



$ python2 version.py
Pywikipedia \[http\] trunk/pywikipedia \(r9136, 2011/03/29, 15:55:44\)
Python 2.7.1 \(r271:86832, Feb 21 2011, 01:26:25\) 
\[GCC 4.5.2 20110127 \(prerelease\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: triggers problem \#3081100

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


Navigation
Links