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():
if not inchi:
raise ConversionError("'MolToInchi' returned None.", smiles)
inchikey = self.Chem.rdinchi.InchiToInchiKey(inchi)
if not inchi:
if not inchikey:
raise ConversionError("'InchiToInchiKey' returned None", smiles)
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