Commit b2155254 authored by seyonechithrananda's avatar seyonechithrananda
Browse files

add importerror when module not found

parent 73766e41
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ from deepchem.utils.typing import RDKitMol
from typing import Dict, List
try:
  from transformers import RobertaTokenizerFast
except:
  raise Warning('This class requires transformers.')
except ModuleNotFoundError:
  raise ImportError('This class requires transformers.')
  pass