Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pubchempy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1983,9 +1983,10 @@ def project_category(self) -> ProjectCategory | None:
def comments(self) -> list[str]:
"""Comments and additional information."""
return [
comment for comment in self.record["assay"]["descr"]["comment"] if comment
comment for comment in self.record["assay"]["descr"].get("comment", "") if comment
]


@property
def results(self) -> list[dict[str, t.Any]]:
"""A list of dictionaries containing details of the results from this Assay."""
Expand Down
Loading