Currently, if you try to run preview_outcome.py with an outcome that is not defined in the bank.xml, an IndexError: list index out of range is raised, which is not very helpful (or at least, confused me for a couple minutes). This raises a more informative error, e.g. ValueError: E1 is not an outcome defined in source/precalculus/exercises/bank.xml
Currently, if you try to run
preview_outcome.py
with an outcome that is not defined in thebank.xml
, anIndexError: list index out of range
is raised, which is not very helpful (or at least, confused me for a couple minutes). This raises a more informative error, e.g.ValueError: E1 is not an outcome defined in source/precalculus/exercises/bank.xml