Skip to content

Commit c9ca764

Browse files
committed
catch errors not inly exceptions
1 parent e9e6eab commit c9ca764

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/main/java/io/bioimage/modelrunner/tensorflow/v1/Tensorflow1Interface.java

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
import org.tensorflow.framework.MetaGraphDef;
7171
import org.tensorflow.framework.SignatureDef;
7272
import org.tensorflow.framework.TensorInfo;
73+
import org.yaml.snakeyaml.Yaml;
7374

7475
/**
7576
* TODO
@@ -636,6 +637,7 @@ private static String getCurrentClasspath() throws UnsupportedEncodingException
636637
String modelrunnerPath = getPathFromClass(DeepLearningEngineInterface.class);
637638
String imglib2Path = getPathFromClass(NativeType.class);
638639
String gsonPath = getPathFromClass(Gson.class);
640+
String snakeYaml = getPathFromClass(Yaml.class);
639641
String jnaPath = getPathFromClass(com.sun.jna.Library.class);
640642
String jnaPlatformPath = getPathFromClass(com.sun.jna.platform.FileUtils.class);
641643
if (modelrunnerPath == null || (modelrunnerPath.endsWith("DeepLearningEngineInterface.class")

0 commit comments

Comments
 (0)