sendgrid-python icon indicating copy to clipboard operation
sendgrid-python copied to clipboard

Error Checking in USAGE

Open OlafvdSpek opened this issue 6 years ago • 4 comments

Most examples are like:

response = sg.client.access_settings.activity.get(query_params=params)
print(response.status_code)
print(response.body)
print(response.headers)

I don't think this is the way to go.. instead, could the examples show how the user is supposed to check for errors? I think exceptions are used (sometimes)..

OlafvdSpek avatar May 02 '19 13:05 OlafvdSpek

Hi @OlafvdSpek,

Great idea! Thank for taking the time to file the issue :)

With Best Regards,

Elmer

thinkingserious avatar May 03 '19 23:05 thinkingserious

Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!

thinkingserious avatar Mar 11 '21 02:03 thinkingserious

Was the issue solved?

OlafvdSpek avatar Mar 11 '21 06:03 OlafvdSpek

Hi @OlafvdSpek this is the current state of our documentation around error handling. If there is more information you would like to add to this documentation file please open a PR.

JenniferMah avatar Mar 11 '21 17:03 JenniferMah