Closed BoboTiG closed 9 months ago
Maybe it would be wise to add a assert
right before altering contents in lang.py
, so that we prevent those kind of loss. It should be done on all other scripts IMO.
The pages listing the languages in PT are gone. We need to find another source.
The data update job had that failure tonight:
File "/home/runner/work/ebook-reader-dict/ebook-reader-dict/scripts/pt-langs.py", line 38, in <module>
next_page_url = process_page(next_page_url, languages)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/ebook-reader-dict/ebook-reader-dict/scripts/pt-langs.py", line 24, in process_page
key = li.text.split(":")[1]
~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
cb4c95831fbf6d869133c58f0f020bdf328e81e1 removed all langs.