You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/use/execute.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,14 @@ tags: [raises-exception]
161
161
print(thisvariabledoesntexist)
162
162
```
163
163
164
+
(execute/raise_on_error)=
165
+
## Error Reporting: Warning vs. Failure
166
+
167
+
When an error occurs in a context where `nb_execution_allow_errors=False`,
168
+
the default behaviour is for this to be reported as a warning.
169
+
This warning will simply be logged and not cause the build to fail unless `sphinx-build` is run with the [`-W` option](https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-W).
170
+
If you would like unexpected execution errors to cause a build failure rather than a warning regardless of the `-W` option, you can achieve this by setting `nb_execution_raise_on_error=True` in your `conf.py`.
0 commit comments