From 071630b7171a3d1428b7829479e0224d5417e900 Mon Sep 17 00:00:00 2001 From: Otto Brinkhaus Date: Thu, 15 Jun 2023 15:34:23 +0200 Subject: [PATCH] fix wrong import --- RanDepict/cdk_functionalities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RanDepict/cdk_functionalities.py b/RanDepict/cdk_functionalities.py index ad9997c..df61ede 100644 --- a/RanDepict/cdk_functionalities.py +++ b/RanDepict/cdk_functionalities.py @@ -1,6 +1,6 @@ from __future__ import annotations import base64 -from jpype import JClass, JavaException +from jpype import JClass, JException import numpy as np from skimage import io as sk_io from skimage.util import img_as_ubyte @@ -283,7 +283,7 @@ def _cdk_get_depiction_generator(self, molecule, has_R_group: bool = False): cdk_superatom_abrv.loadFromFile(abbreviation_path) try: cdk_superatom_abrv.apply(molecule) - except JavaException: + except JException: pass return dep_gen, molecule