Badly formed exercises that throw docutils.utils.SystemMessage will cause crash
Bug #526191 reported by
David Coles
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
IVLE |
Fix Released
|
Medium
|
David Coles |
Bug Description
Badly formed exercises such as ch5_ambiguous.xml should not crash IVLE. The SystemMessage exception of docutils needs to be caught and inform the user of the error in the exercise. Otherwise any use of this exercise will crash the worksheet or exercise viewer it is called from.
Related branches
Changed in ivle: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Something a simple as ' a) Part A' (note the leading space) in the reStructuredText is enough to trigger this error.
Ideally we should print the exercise as having an error and continue on with the rest of the worksheet.