Skip to content

fix: avoid crashing if an assay is missing comment#144

Open
thiswillbeyourgithub wants to merge 1 commit intomcs07:mainfrom
thiswillbeyourgithub:fix-missing-comment-in-assay
Open

fix: avoid crashing if an assay is missing comment#144
thiswillbeyourgithub wants to merge 1 commit intomcs07:mainfrom
thiswillbeyourgithub:fix-missing-comment-in-assay

Conversation

@thiswillbeyourgithub
Copy link

@thiswillbeyourgithub thiswillbeyourgithub commented Sep 3, 2025

Signed-off-by: thiswillbeyourgithub 26625900+thiswillbeyourgithub@users.noreply.github.com

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

Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant