lyx2lyx error: IndexError: list index out of range

José Matos jaomatos at gmail.com
Sun Dec 11 21:42:33 UTC 2022


On Sun, 2022-12-11 at 15:29 -0500, Scott Kostyshak wrote:
> convert_hebrew_parentheses
>     elif current_languages[-1] == 'hebrew' and not
> line.startswith('\\'):
> IndexError: list index out of range

This happens only when current_languages is an empty list:

In [1]: [][-1]
-----------------------------------------------------------------------
IndexError                            Traceback (most recent call last)
Cell In [1], line 1
----> 1 [][-1]

IndexError: list index out of range

-- 
José Abílio


More information about the lyx-devel mailing list