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

            Bug ID: 68153
           Summary: blockpageschecker.py fails on English Wikipedia
           Product: Pywikibot
           Version: core (2.0)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
       Web browser: ---
   Mobile Platform: ---

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

-- 
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