diff --git a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api030/JavaWorker.java b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api030/JavaWorker.java index 26bee4a..e46696f 100644 --- a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api030/JavaWorker.java +++ b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api030/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; }