lahwaacz / wiki-scripts

Framework for writing bots, maintenance scripts or performing data analysis on wikis powered by MediaWiki
http://lahwaacz.github.io/wiki-scripts/
GNU General Public License v3.0
27 stars 12 forks source link

toc.py: IndexError: list index out of range #86

Closed kynikos closed 2 years ago

kynikos commented 2 years ago

On 41e05d50136bb4a49bd4b4144470293ca278dc17:

$ python toc.py -s

...

Traceback (most recent call last):
  File "/home/dario/dev/arch/wiki-scripts/toc.py", line 363, in <module>
    toc.run()
  File "/home/dario/dev/arch/wiki-scripts/toc.py", line 291, in run
    cat.fix_allpages()
  File "/home/dario/dev/arch/wiki-scripts/ws/interlanguage/Categorization.py", line 81, in fix_allpages
    timestamp = page["revisions"][0]["timestamp"]
IndexError: list index out of range

Have a great day mate!!! ^^

lahwaacz commented 2 years ago

Sorry for the delay! I think it should be fixed in https://github.com/lahwaacz/wiki-scripts/commit/e48f57972516e812fb6d3375ca9da61b7db7ad0e, please let me know if it works.

kynikos commented 2 years ago

It worked! I've been watching all the work that you're doing for the wiki, you're amazing, thank you!! :D