From c25070242917885952f0ea954ced3b69d28f887d Mon Sep 17 00:00:00 2001
From: Eleni Mathioulaki <emathioulaki@athenarc.gr>
Date: Tue, 13 Feb 2024 12:51:32 +0100
Subject: [PATCH] minor fixes to wf tests

---
 packages/wf-brainscales2-demos/package.py | 2 +-
 packages/wf-multi-area-model/package.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/wf-brainscales2-demos/package.py b/packages/wf-brainscales2-demos/package.py
index ff6cef58..f54ebef1 100644
--- a/packages/wf-brainscales2-demos/package.py
+++ b/packages/wf-brainscales2-demos/package.py
@@ -58,7 +58,7 @@ class WfBrainscales2Demos(Package):
         except Exception as e:
             # if the notebook execution fails, re-run notebook to produce output with error
             # in case of a cell timeout, don't re-run
-            if "CellTimeoutError" not in e:
+            if "CellTimeoutError" not in str(e):
                 jupyter(*(args+["--allow-errors"]))
             raise
 
diff --git a/packages/wf-multi-area-model/package.py b/packages/wf-multi-area-model/package.py
index b8ff5feb..76db0cf2 100644
--- a/packages/wf-multi-area-model/package.py
+++ b/packages/wf-multi-area-model/package.py
@@ -47,7 +47,7 @@ class WfMultiAreaModel(Package):
         try:
             # execute notebook and save
             jupyter(*args)
-        except ProcessError as e:
+        except Exception as e:
             # if the above fails, re-run notebook to produce output with error
             jupyter(*(args+["--allow-errors"]))
             raise
-- 
GitLab