Yes, when the RDKit returns "None" when it encounters a SMILES that contains errors or that describes a molecule that does not pass sanitization. If you'd like to stop your program when such a problem occurs, just check to see if the molecule is None
-greg On Fri, Nov 9, 2018 at 8:41 AM Noki Lee <[email protected]> wrote: > Additionally, > > Is it the only way to use 'None' value? > > Best, > Noki > > On Fri, Nov 9, 2018 at 4:18 PM Noki Lee <[email protected]> wrote: > >> Hi, rdkit! >> >> When I use Chem.MolFromSmiles(Smiles) with the wrong Smiles, it spits out >> an error message. But, this is just the error message and doesn't stop the >> code coming next line. How can I activate the stderr interrupts python >> script? >> >> Best, >> Noki >> > _______________________________________________ > Rdkit-discuss mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/rdkit-discuss >
_______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

