Commit 148a0365 authored by Martino Bertoni's avatar Martino Bertoni 🌋
Browse files

fix minor bug in converter

parent efa263c1
Pipeline #2414 passed with stages
in 4 minutes and 38 seconds
...@@ -48,7 +48,7 @@ class Converter(): ...@@ -48,7 +48,7 @@ class Converter():
if not inchi: if not inchi:
raise ConversionError("'MolToInchi' returned None.", smiles) raise ConversionError("'MolToInchi' returned None.", smiles)
inchikey = self.Chem.rdinchi.InchiToInchiKey(inchi) inchikey = self.Chem.rdinchi.InchiToInchiKey(inchi)
if not inchi: if not inchikey:
raise ConversionError("'InchiToInchiKey' returned None", smiles) raise ConversionError("'InchiToInchiKey' returned None", smiles)
try: try:
mol = self.Chem.rdinchi.InchiToMol(inchi)[0] mol = self.Chem.rdinchi.InchiToMol(inchi)[0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment