Skip to content

Commit e9e6eab

Browse files
committed
catch errors, not only exceptions
1 parent 0c637bb commit e9e6eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/bioimage/modelrunner/tensorflow/v1/JavaWorker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private void executeScript(String script, Map<String, Object> inputs) {
9393
} else if (script.equals("close")) {
9494
ti.closeModel();
9595
}
96-
} catch(Exception ex) {
96+
} catch(Exception | Error ex) {
9797
this.fail(Types.stackTrace(ex));
9898
return;
9999
}

0 commit comments

Comments
 (0)