def post_process(self, response):
		try:
			rjson = response.json()
		except __HOLE__:
			print response.text
			raise

		if rjson and ("exc" in rjson) and rjson["exc"]:
			raise FrappeException(rjson["exc"])
		if 'message' in rjson:
			return rjson['message']
		elif 'data' in rjson:
			return rjson['data']
		else:
			return None
dataset/ETHPy150Open frappe/frappe/frappe/frappeclient.py/FrappeClient.post_process