-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.
Description
Hi :)
I was reading the docs looking for an example to handle exceptions from when request.execute() goes wrong e.g. a 403 due to
Exceeding qouta limits.
I would like for the docs to be updated with a try: and except: like this
try:
response = request.execute()
except HttpError as e:
logger.error('Error response status code %d, reason %s:', e.resp.status, e.content)
return {'error': 403, 'body' : 'YouTube API Data v3 qouta limit exceeded'}or something else in the except block
If you're happy with this I'd like to contribute this as a first timer to open source?
Metadata
Metadata
Assignees
Labels
type: docsImprovement to the documentation for an API.Improvement to the documentation for an API.