def _process_response(self, response, object_mapping=None):
try:<EOL><INDENT>pretty_response = response.json()<EOL><DEDENT>except ValueError:<EOL><INDENT>pretty_response = response<EOL><DEDENT>for handler in self._response_handlers:<EOL><INDENT>if handler.applies_to(self, response):<EOL><INDENT>log.debug("<STR_LIT>".format(handler.__name__, pretty_response))<EOL>r = handler(self, object_mapping).build(response)<EOL>self._clean_dirty_objects()<EOL>return r<EOL><DEDENT><DEDENT>raise ZenpyException("<STR_LIT>".format(pretty_response))<EOL>
Attempt to find a ResponseHandler that knows how to process this response.
If no handler can be found, raise an Exception.