Xqt created this task.
Xqt added a project: Pywikibot-Scripts.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a project: Pywikibot.

TASK DESCRIPTION
  check_protection_level function of protect.py fails with TypeError:
  
    C:\pwb\GIT\core>pwb protect -simulate -default:ff -page:user:xqt/Test
    Choice a protection level to Default level: ( [1], [s]ysop, [a]ll,
    [e]diteditorprotected, a[u]toconfirmed, [q]uit): s
    Traceback (most recent call last):
      File "C:\pwb\GIT\core\pwb.py", line 297, in <module>
        if not main():
      File "C:\pwb\GIT\core\pwb.py", line 292, in main
        run_python_file(filename, [filename] + args, argvu, file_package)
      File "C:\pwb\GIT\core\pwb.py", line 96, in run_python_file
        main_mod.__dict__)
      File ".\scripts\protect.py", line 273, in <module>
        main()
      File ".\scripts\protect.py", line 249, in main
        protection_levels)
      File ".\scripts\protect.py", line 145, in check_protection_level
        return levels[first_char.index(choice)]
    TypeError: 'set' object does not support indexing
    CRITICAL: Exiting due to uncaught exception <class 'TypeError'>
    
    C:\pwb\GIT\core>

TASK DETAIL
  https://phabricator.wikimedia.org/T225448

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Viztor, DannyS712, Wenyi, Tbscho, MayS, 
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to