Badly formed exercises that throw docutils.utils.SystemMessage will cause crash

Bug #526191 reported by David Coles
6
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.

Tags: exercise

Related branches

Revision history for this message
David Coles (dcoles) wrote :

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.

Revision history for this message
David Coles (dcoles) wrote :

Fixed in r1676. Show the error if we can't pass the reStructuredText - likely just a small syntax error.

Changed in ivle:
status: Triaged → Fix Committed
William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.