Hello,
Since few days I have some bugs executing template.py with cosmetic changes. Is it related to this vandalism ?
I had something with ascii (sorry I haven't saved the logs) and remenber it was corrected few months ago.
I have also this traces :
ERROR: Fatal error:
Traceback (most recent call last):
File "/data/project/herculebot/pywikibot-core/scripts/template.py", line 382, in <module>
main()
File "/data/project/herculebot/pywikibot-core/scripts/template.py", line 377, in main
bot.run()
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/scripts/replace.py", line 826, in run
callback=self._replace_sync_callback, quiet=True)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/tools/__init__.py", line 1450, in wrapper
return obj(*__args, **__kw)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/tools/__init__.py", line 1450, in wrapper
return obj(*__args, **__kw)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/page.py", line 1270, in save
cc=apply_cosmetic_changes, quiet=quiet, **kwargs)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/page.py", line 127, in wrapper
handle(func, self, *args, **kwargs)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/page.py", line 109, in handle
func(self, *args, **kwargs)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/page.py", line 1278, in _save
summary = self._cosmetic_changes_hook(summary)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/page.py", line 1325, in _cosmetic_changes_hook
self.text = ccToolkit.change(old)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/cosmetic_changes.py", line 301, in change
new_text = self._change(text)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/cosmetic_changes.py", line 295, in _change
text = self.safe_execute(method, text)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/cosmetic_changes.py", line 282, in safe_execute
result = method(text)
File "/mnt/nfs/labstore-secondary-tools-project/herculebot/pywikibot-core/pywikibot/cosmetic_changes.py", line 680, in removeEmptySections
current_heading = sections[i][0]
I now there was recent changes with empty sections, that caused bugs (removing non commented code);
Regards
Hercule