sregistry/main/s3/__init__.py
def _read_response(self,response, field="detail"):
        '''attempt to read the detail provided by the response. If none, 
        default to using the reason'''

        try:
            message = json.loads(response._content.decode('utf-8'))[field]
        except:
            message = response.reason
        return message
def _read_response(self,response, field="detail"):
        '''attempt to read the detail provided by the response. If none, 
        default to using the reason'''

        try:
            message = json.loads(response._content.decode('utf-8'))[field]
        except:
            message = response.reason
        return message
def _read_response ( self , response , field = "detail" ) : try : message = json . loads ( response . _content . decode ( 'utf-8' ) ) [ field ] except : message = response . reason return message
attempt to read the detail provided by the response. If none, 
        default to using the reason
attempt to read the detail provided by the response . If none default to using the reason