Xqt created this task.
Xqt added a project: Pywikibot-core.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

after giving a -whitelist option the script Fails:

C:\pwb\GIT\core>py -2 pwb.py patrol -simulate -lang:sr -whitelist:user:Zoranzoki21/patrol_whitelist

gives

Newpages:
Reloading whitelist
ERROR: 'object' object has no attribute 'nodes'
Traceback (most recent call last):
  File "pwb.py", line 264, in <module>
    if not main():
  File "pwb.py", line 257, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "pwb.py", line 120, in run_python_file
    main_mod.__dict__)
  File ".\scripts\patrol.py", line 529, in <module>
    main()
  File ".\scripts\patrol.py", line 514, in main
    bot.run(feed)
  File ".\scripts\patrol.py", line 302, in run
    self.treat(page)
  File ".\scripts\patrol.py", line 339, in treat
    if self.in_list(self.whitelist[username], title):
TypeError: string indices must be integers
<type 'exceptions.TypeError'>
CRITICAL: Closing network session.

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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to