Skip to content

Commit

Permalink
Import CellExecutionError from nbconvert from the right place (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
HealthyPear committed Feb 4, 2024
1 parent 85f7a2a commit 6145052
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
install_requires=[
'docutils',
'jinja2',
'nbconvert!=5.4',
'nbconvert>=5.3,!=5.4',
'traitlets>=5',
'nbformat',
'sphinx>=1.8',
Expand Down
2 changes: 1 addition & 1 deletion src/nbsphinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def parse(self, inputstring, document):

try:
rststring, resources = exporter.from_notebook_node(nb, resources)
except nbconvert.preprocessors.execute.CellExecutionError as e:
except nbconvert.preprocessors.CellExecutionError as e:
lines = str(e).split('\n')
lines[0] = 'CellExecutionError in {}:'.format(
env.doc2path(env.docname, base=None))
Expand Down

0 comments on commit 6145052

Please sign in to comment.