googlesheets/api.py
def parse_http_error(e: googleapiclient.errors.HttpError) -> dict:
    """helper function for extracting an error object from an http exception."""

    return (
        json.loads(e.content)
        if e.resp.get('content-type', '').startswith('application/json') else
        {}
    )
helper function for extracting an error object from an http exception.
helper function for extracting an error object from an http exception.
helper function for extracting an error object from an http exception .
def parse_http_error(e: googleapiclient.errors.HttpError) -> dict:
    return (
        json.loads(e.content)
        if e.resp.get('content-type', '').startswith('application/json') else
        {}
    )
def parse_http_error ( e : googleapiclient . errors . HttpError ) -> dict : return ( json . loads ( e . content ) if e . resp . get ( 'content-type' , '' ) . startswith ( 'application/json' ) else { } )
helper function for extracting an error object from an http exception.
helper function for extracting an error object from an http exception .
"""helper function for extracting an error object from an http exception."""
e
googleapiclient.errors.HttpError