Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nb_execution_show_tb = True does not work when nb_execution_raise_on_error = True #616

Open
FrancescMartiEscofetQC opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@FrancescMartiEscofetQC
Copy link

FrancescMartiEscofetQC commented Jul 23, 2024

Describe the bug

context
When I set nb_execution_show_tb = True the traceback is not shown in the case nb_execution_raise_on_error = True.

expectation
I expected to see the traceback on the console.

bug
But instead just a plain ExecutionError with the name of the file is shown.

problem
This is a problem for people building the documentation on ReadtheDocs as the log files can't be accessed.

As far as I can tell, the problem comes from these lines where we raise the error before adding the traceback to the message and the traceback is never shown.

Reproduce the bug

Set nb_execution_show_tb = True and nb_execution_raise_on_error = True in conf.py.

List your environment

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant