allow raises-exception or nbval-raises-exception to continue

pull/2549/head
Michael Scott Cuthbert 9 years ago
parent 9cd249ef7f
commit 81be6c575a

@ -310,7 +310,18 @@ define([
}
if (stop_on_error === undefined) {
stop_on_error = true;
if (this.metadata !== undefined &&
this.metadata.tags !== undefined) {
if (this.metadata.tags.indexOf('raises-exception') !== -1) {
stop_on_error = false;
} else if (this.metadata.tags.indexOf('nbval-raises-exception') !== -1) {
stop_on_error = false;
} else {
stop_on_error = true;
}
} else {
stop_on_error = true;
}
}
this.clear_output(false, true);

Loading…
Cancel
Save