Skip to content

Error Checking in USAGE #798

Open
Open
@OlafvdSpek

Description

@OlafvdSpek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions