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

TASK DESCRIPTION
    Script terminated by exception:
    
    ERROR: 'NoneType' object is not subscriptable (TypeError)
    Traceback (most recent call last):
      File "D:\pwb\core\pywikibot\page\_toolforge.py", line 192, in authorship
        table = wikitextparser.parse(r.text).tables[0]
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
    IndexError: list index out of range
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "D:\pwb\core\pwb.py", line 40, in <module>
        sys.exit(main())
                 ^^^^^^
      File "D:\pwb\core\pwb.py", line 36, in main
        runpy.run_path(str(path), run_name='__main__')
      File "<frozen runpy>", line 291, in run_path
      File "<frozen runpy>", line 98, in _run_module_code
      File "<frozen runpy>", line 88, in _run_code
      File "D:\pwb\core\pywikibot\scripts\wrapper.py", line 523, in <module>
        main()
      File "D:\pwb\core\pywikibot\scripts\wrapper.py", line 507, in main
        if not execute():
               ^^^^^^^^^
      File "D:\pwb\core\pywikibot\scripts\wrapper.py", line 494, in execute
        run_python_file(filename, script_args, module)
      File "D:\pwb\core\pywikibot\scripts\wrapper.py", line 149, in 
run_python_file
        exec(compile(source, filename, 'exec', dont_inherit=True),
      File "D:\pwb\xqbot\deletion_request_notifier.py", line 399, in <module>
        main()
      File "D:\pwb\xqbot\deletion_request_notifier.py", line 389, in main
        bot.run()
      File "D:\pwb\xqbot\deletion_request_notifier.py", line 141, in run
        super().run()
      File "D:\pwb\core\pywikibot\bot.py", line 1582, in run
        self.treat(page)
      File "D:\pwb\core\pywikibot\bot.py", line 1835, in treat
        self.treat_page()
      File "D:\pwb\xqbot\deletion_request_notifier.py", line 227, in treat_page
        for author, percent in self.find_authors(page, previd):
      File "D:\pwb\xqbot\deletion_request_notifier.py", line 284, in 
find_authors
        auth = page.authorship(
               ^^^^^^^^^^^^^^^^
      File "D:\pwb\core\pywikibot\page\_toolforge.py", line 195, in authorship
        msg = textlib.removeHTMLParts(pattern.search(r.text)[0])
                                      ~~~~~~~~~~~~~~~~~~~~~~^^^
    TypeError: 'NoneType' object is not subscriptable
    CRITICAL: Exiting due to uncaught exception TypeError: 'NoneType' object is 
not subscriptable

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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, 
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to