Skip to content

Commit c37132f

Browse files
committed
Remove comments
1 parent 7ce22f6 commit c37132f

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

python-lib/rest_api_client.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,6 @@ def request(self, method, url, can_raise_exeption=True, **kwargs):
166166
if response.status_code in [204]:
167167
self.pagination.update_next_page({}, response.links)
168168
return self.empty_json_response()
169-
# try:
170-
# json_response = response.json()
171-
# except Exception as err:
172-
# self.pagination.update_next_page({}, None)
173-
# error_message = "Error '{}' when decoding JSON".format(str(err)[:100])
174-
# logger.error(error_message)
175-
# logger.error("response.content={}".format(response.content))
176-
# if can_raise_exeption:
177-
# raise RestAPIClientError("The API did not return JSON as expected. {}".format(error_message))
178-
# return {} if self.behaviour_when_error=="ignore" else {DKUConstants.REPONSE_ERROR_KEY: error_message}
179169

180170
json_response = self.get_json_from_response(response, can_raise_exeption=can_raise_exeption)
181171

0 commit comments

Comments
 (0)