ValueError instead of Exception for SMILES/IUPAC.
Updated deprecated print.