def get(self): try: service = GoogleAnalyticsService(self.g_credential) properties = service.get_all_profiles_with_properties() except HttpError, e: abort(404, message=json.loads(e.content).get("error").get("message"))