diff --git a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/JavaWorker.java b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/JavaWorker.java index 3b98741..cca645c 100644 --- a/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/JavaWorker.java +++ b/src/main/java/io/bioimage/modelrunner/tensorflow/v2/api050/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; }