Skip to content

Commit 8fcc70e

Browse files
committed
catch errors not inly exceptions
1 parent 08d725c commit 8fcc70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/bioimage/modelrunner/pytorch/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
pi.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)