Last modified: 2014-11-02 12:17:24 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 T70153, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68153 - blockpageschecker.py fails on English Wikipedia
blockpageschecker.py fails on English Wikipedia
Status: NEW
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
: easy
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-07-17 10:33 UTC by John Mark Vandenberg
Modified: 2014-11-02 12:17 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-07-17 10:33:05 UTC
Firstly, categoryToCheck is set to [[Category:Protected]] which is wrong.

When categoryToCheck is set to [[Category:Wikipedia protected pages]], it gives the following error because it has not been configured for English Wikipedia.

If blockpageschecker.py is run on 

Loading [[OMICS Group]]...
Traceback (most recent call last):
  File "pwb.py", line 153, in <module>
    run_python_file(fn, argv, argvu)
  File "pwb.py", line 67, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts/blockpageschecker.py", line 498, in <module>
    main()
  File "scripts/blockpageschecker.py", line 336, in main
    replaceToPerform = u'|'.join(TTP + TSP)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'
<type 'exceptions.TypeError'>

Support for English Wikipedia has been disabled since 2008 with this changeset, as 'en' was set to None for all the other configuration fields.

https://mediawiki.org/wiki/Special:Code/pywikipedia/5246

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


Navigation
Links