Meno25 created this task. Meno25 added projects: Pywikibot, Pywikibot-Scripts. Restricted Application added subscribers: pywikibot-bugs-list, alaa, Aklapper.
TASK DESCRIPTION **Command line:** python pwb.py fixing_redirects -ignoremoves -cat:"مقالات مختارة" -lang:ar **Output:** >>> نادي برشلونة <<< 666 read operations 95 write operations Execution time: 7959 seconds Read operation time: 12.0 seconds Write operation time: 83.8 seconds Script terminated by exception: ERROR: string index out of range (IndexError) Traceback (most recent call last): File "C:\Users\Mohammed\Downloads\core\pwb.py", line 39, in <module> sys.exit(main()) ^^^^^^ File "C:\Users\Mohammed\Downloads\core\pwb.py", line 35, 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 "C:\Users\Mohammed\Downloads\core\pywikibot\scripts\wrapper.py", line 514, in <module> main() File "C:\Users\Mohammed\Downloads\core\pywikibot\scripts\wrapper.py", line 498, in main if not execute(): ^^^^^^^^^ File "C:\Users\Mohammed\Downloads\core\pywikibot\scripts\wrapper.py", line 485, in execute run_python_file(filename, script_args, module) File "C:\Users\Mohammed\Downloads\core\pywikibot\scripts\wrapper.py", line 147, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "C:\Users\Mohammed\Downloads\core\scripts\fixing_redirects.py", line 265, in <module> main() File "C:\Users\Mohammed\Downloads\core\scripts\fixing_redirects.py", line 259, in main bot.run() File "C:\Users\Mohammed\Downloads\core\pywikibot\bot.py", line 1677, in run self.treat(page) File "C:\Users\Mohammed\Downloads\core\pywikibot\bot.py", line 1931, in treat self.treat_page() File "C:\Users\Mohammed\Downloads\core\scripts\fixing_redirects.py", line 206, in treat_page newtext = self.replace_links(newtext, page, target) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Mohammed\Downloads\core\scripts\fixing_redirects.py", line 131, in replace_links if link_text[0].isupper() or link_text[0].isdigit(): ~~~~~~~~~^^^ IndexError: string index out of range CRITICAL: Exiting due to uncaught exception IndexError: string index out of range **What happens?** - This error happens after processing exactly 666 articles in the category ar:Category:مقالات مختارة <https://ar.wikipedia.org/wiki/%D8%AA%D8%B5%D9%86%D9%8A%D9%81:%D9%85%D9%82%D8%A7%D9%84%D8%A7%D8%AA_%D9%85%D8%AE%D8%AA%D8%A7%D8%B1%D8%A9> (out of a total of 701 articles in the category). **What should have happened instead?**: - The bot should have been able to process all the articles in the category without crashing. **Software version:** Pywikibot: [https] r-pywikibot-core (320078b, g17918, 2023/06/12, 13:27:04, master) Release version: 8.2.0.dev2 setuptools version: 67.8.0 mwparserfromhell version: 0.6.4 wikitextparser version: n/a requests version: 2.31.0 certificate test: ok Python: 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] TASK DETAIL https://phabricator.wikimedia.org/T339163 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Meno25 Cc: Aklapper, alaa, Meno25, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- pywikibot-bugs@lists.wikimedia.org To unsubscribe send an email to pywikibot-bugs-le...@lists.wikimedia.org