Skip to content

Commit

Permalink
fix wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrink committed Jun 15, 2023
1 parent 0fe9d6d commit 071630b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RanDepict/cdk_functionalities.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 071630b

Please sign in to comment.