shale/__init__.py
def _process_json_data(self, resp):
        """
        Process JSON data from a response.
        """

        try:
            resp_data = json.loads(resp.content.decode('UTF-8'))
        except ValueError as e:
            raise ShaleException(
                "The shale server did not return JSON.", e, resp.content)

        if 'error' in resp_data:
            raise ShaleException(resp_data['error'])
        return resp_data

        Process JSON data from a response.
        
Process JSON data from a response.
Process JSON data from a response .
def _process_json_data(self, resp):
        try:
            resp_data = json.loads(resp.content.decode('UTF-8'))
        except ValueError as e:
            raise ShaleException(
                "The shale server did not return JSON.", e, resp.content)
        if 'error' in resp_data:
            raise ShaleException(resp_data['error'])
        return resp_data
def _process_json_data ( self , resp ) : try : resp_data = json . loads ( resp . content . decode ( 'UTF-8' ) ) except ValueError as e : raise ShaleException ( "The shale server did not return JSON." , e , resp . content ) if 'error' in resp_data : raise ShaleException ( resp_data [ 'error' ] ) return resp_data
Process JSON data from a response.
Process JSON data from a response .
"""
        Process JSON data from a response.
        """
self
resp