Riley_Huntley created this task.
Herald added subscribers: pywikibot-bugs-list, StudiesWorld, Aklapper.

TASK DESCRIPTION
    WARNING: The category page target 'Category:Photographs by Kok Leng Yeo' 
already exists.
    Retrieving 50 pages from commons:commons.
    Traceback (most recent call last):
      File "pwb.py", line 256, in <module>
        if not main():
      File "pwb.py", line 250, in main
        run_python_file(filename, [filename] + args, argvu, file_package)
      File "pwb.py", line 121, in run_python_file
        main_mod.__dict__)
      File "./scripts/category.py", line 1289, in <module>
        main()
      File "./scripts/category.py", line 1276, in main
        bot.run()
      File "./scripts/category.py", line 568, in run
        self._change(pagegenerators.CategorizedPageGenerator(self.oldcat))
      File "./scripts/category.py", line 609, in _change
        sortKey=self.keep_sortkey)
      File "/home/riley/pywikibot-core/pywikibot/page.py", line 2019, in 
change_category
        self.put(newtext, comment)
      File "/home/riley/pywikibot-core/pywikibot/tools/__init__.py", line 1357, 
in wrapper
        return obj(*__args, **__kw)
      File "/home/riley/pywikibot-core/pywikibot/page.py", line 1246, in put
        **kwargs)
      File "/home/riley/pywikibot-core/pywikibot/tools/__init__.py", line 1357, 
in wrapper
        return obj(*__args, **__kw)
      File "/home/riley/pywikibot-core/pywikibot/page.py", line 1151, in save
        if not force and not self.botMayEdit():
      File "/home/riley/pywikibot-core/pywikibot/page.py", line 1065, in 
botMayEdit
        templates = self.templatesWithParams()
      File "/home/riley/pywikibot-core/pywikibot/tools/__init__.py", line 1357, 
in wrapper
        return obj(*__args, **__kw)
      File "/home/riley/pywikibot-core/pywikibot/page.py", line 2129, in 
templatesWithParams
        templates = textlib.extract_templates_and_params(self.text)
      File "/home/riley/pywikibot-core/pywikibot/textlib.py", line 1388, in 
extract_templates_and_params
        return extract_templates_and_params_mwpfh(text, strip)
      File "/home/riley/pywikibot-core/pywikibot/textlib.py", line 1412, in 
extract_templates_and_params_mwpfh
        for template in code.filter_templates(recursive=True):
      File 
"/usr/local/lib/python2.7/dist-packages/mwparserfromhell/wikicode.py", line 
360, in filter_templates
        return list(self.ifilter_templates(recursive, matches, flags))
      File 
"/usr/local/lib/python2.7/dist-packages/mwparserfromhell/wikicode.py", line 
320, in ifilter_templates
        return self.filter(recursive, matches, flags, forcetype=Template)
      File 
"/usr/local/lib/python2.7/dist-packages/mwparserfromhell/wikicode.py", line 
344, in filter
        return list(self.ifilter(recursive, matches, flags, forcetype))
      File 
"/usr/local/lib/python2.7/dist-packages/mwparserfromhell/wikicode.py", line 
301, in ifilter
        for node in nodes:
      File 
"/usr/local/lib/python2.7/dist-packages/mwparserfromhell/wikicode.py", line 82, 
in _get_all_nodes
        for child in self._get_children(node):
      File 
"/usr/local/lib/python2.7/dist-packages/mwparserfromhell/wikicode.py", line 59, 
in _get_children
        for context, child in node.__iternodes__(self._get_all_nodes):
    AttributeError: 'NoneType' object has no attribute '__iternodes__'
    <type 'exceptions.AttributeError'>
    CRITICAL: Closing network session.
    riley@ridley:~/pywikibot-core$

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

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

To: Riley_Huntley
Cc: Aklapper, StudiesWorld, Riley_Huntley, pywikibot-bugs-list



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to