From e9e6eab1d1bf50e017e2e9fc8327a6df3d325a38 Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Tue, 19 Nov 2024 12:38:57 +0100 Subject: [PATCH] catch errors, not only exceptions --- .../java/io/bioimage/modelrunner/tensorflow/v1/JavaWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/bioimage/modelrunner/tensorflow/v1/JavaWorker.java b/src/main/java/io/bioimage/modelrunner/tensorflow/v1/JavaWorker.java index 6e7ffe8..d661d06 100644 --- a/src/main/java/io/bioimage/modelrunner/tensorflow/v1/JavaWorker.java +++ b/src/main/java/io/bioimage/modelrunner/tensorflow/v1/JavaWorker.java @@ -93,7 +93,7 @@ private void executeScript(String script, Map inputs) { } else if (script.equals("close")) { ti.closeModel(); } - } catch(Exception ex) { + } catch(Exception | Error ex) { this.fail(Types.stackTrace(ex)); return; }