We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d7ca43 commit bf97527Copy full SHA for bf97527
chebai/preprocessing/reader.py
@@ -205,8 +205,12 @@ def _read_data(self, raw_data: str) -> List[int]:
205
except Exception as e:
206
print(f"RDKit failed to process {raw_data}")
207
print(f"\t{e}")
208
-
209
- return [self._get_token_index(v[1]) for v in _tokenize(raw_data)]
+ try:
+ return [self._get_token_index(v[1]) for v in _tokenize(raw_data)]
210
+ except ValueError as e:
211
+ print(f"could not process {raw_data}")
212
+ print(f"\t{e}")
213
+ return None
214
215
216
class DeepChemDataReader(ChemDataReader):
0 commit comments