Skip to content

Commit

Permalink
Merge pull request #40 from OBrink/cxSMILES_structures_with_coordinates
Browse files Browse the repository at this point in the history
fix wrong import
  • Loading branch information
OBrink authored Jun 15, 2023
2 parents 0ff0094 + 071630b commit a1ba2a1
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 a1ba2a1

Please sign in to comment.