PubChemPy
PubChemPy copied to clipboard
Returncode if the structure does not exist
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 : 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!