Skip to content

Commit 4f1068e

Browse files
committed
Print exception on tear down failure
Also fixing aura ci deps
1 parent 51daf06 commit 4f1068e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
nbconvert==7.11.0
22
nbformat==5.9.2
33
nbclient==0.9.0
4+
ipykernel==6.26.0

scripts/run_notebooks.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ def preprocess_cell(self, cell: Any, resources: Any, index: int) -> None:
3636
if e.ename == "AssertionError" and index == self.version_verify_cell_index:
3737
print("Skipping notebook due to incompatible GDS version")
3838
self._skip_rest = True
39-
else:
40-
if self.tear_down_cells:
41-
print("Running tear down cells")
42-
for td_cell, td_idx in self.tear_down_cells:
39+
return
40+
41+
if self.tear_down_cells:
42+
print(f"Running tear down cells due to error in notebook execution: {e}")
43+
for td_cell, td_idx in self.tear_down_cells:
44+
try:
4345
super().preprocess_cell(td_cell, resources, td_idx) # type: ignore
44-
raise e
46+
except CellExecutionError as td_e:
47+
print(f"Error running tear down cell {td_idx}: {td_e}")
48+
raise e
4549

4650

4751
class GdsTearDownCollector(ExecutePreprocessor):

0 commit comments

Comments
 (0)