Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
fix key in execute_notebooks_list
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Aug 15, 2017
1 parent 6b94749 commit b0708b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyquickhelper/ipythonhelper/run_notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def clean_function(cell) : return new_cell_content
results[note].update(stat)
except Exception as e:
etime = time.clock() - cl
results[note] = dict(success=False, time=etime, error=e, name=note,
results[note] = dict(success=False, etime=etime, error=e, name=note,
date=datetime.now())
return results

Expand Down Expand Up @@ -335,7 +335,7 @@ def fail_note(v):
fLOG(f)
for k, v in sorted(res.items()):
name = os.path.split(k)[-1]
fLOG(name, v["success"], v["etime"])
fLOG(name, v.get("success", None), v.get("etime", None))
if len(fails) > 0:
raise fails[0][1]["error"]

Expand Down

0 comments on commit b0708b2

Please sign in to comment.