PubChemPy
PubChemPy copied to clipboard
fix: avoid crashing if an assay is missing comment
Signed-off-by: thiswillbeyourgithub [email protected]
Here is the code that was crashing before:
import json
import pubchempy as pcp
assays = pcp.get_assays([2062])
for a in assays:
print(a.to_dict())