PubChemPy icon indicating copy to clipboard operation
PubChemPy copied to clipboard

fix: avoid crashing if an assay is missing comment

Open thiswillbeyourgithub opened this issue 4 months ago • 0 comments

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())


thiswillbeyourgithub avatar Sep 03 '25 10:09 thiswillbeyourgithub