PubChemPy icon indicating copy to clipboard operation
PubChemPy copied to clipboard

Returncode if the structure does not exist

Open spirit01 opened this issue 7 years ago • 1 comments

Good afternoon,

I would like to ask a question because I'm not able to find it.

I send the name of the structure to PubChem, but I cannot recognize if the structure does not exist. For example, I have the wrong name of the structure. Does it have some return code in case of wrong input?

Thank you.

spirit01 avatar Jan 09 '19 11:01 spirit01

@spirit01 : if you are talking about get_compounds(), I believe it simply returns an empty list if there is no match. As the code here Also, another issue you might run into maybe this: Issue#13 However, without the exact command, it will be hard to know exactly why!

khoivan88 avatar Feb 24 '20 19:02 khoivan88