From dac405d348d44069b186f6cd48633e2c6267a56f Mon Sep 17 00:00:00 2001 From: Tyler Liu Date: Wed, 20 Nov 2024 16:26:41 -0800 Subject: [PATCH] Delete useless code --- ringcentral/http/api_response.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ringcentral/http/api_response.py b/ringcentral/http/api_response.py index 626a034..d630f9e 100644 --- a/ringcentral/http/api_response.py +++ b/ringcentral/http/api_response.py @@ -83,19 +83,6 @@ def error(self): if self._request is not None: message = message + ' (request details: ' + get_prepared_request_details(self._request) + ')' - # try: - # data = self.json_dict() - - # if 'message' in data: - # message = data['message'] - # elif 'error_description' in data: - # message = data['error_description'] - # elif 'description' in data: - # message = data['description'] - - # except Exception as e: - # message = message + ' (and additional error happened during JSON parse: ' + e.message + ')' - return message def request(self):