Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 2dfe728

Browse files
committed
typo - theres just "result" and "result_info" returned in raw mode
1 parent 797b90f commit 2dfe728

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

CloudFlare/cloudflare.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,13 @@ def _call(self, method, headers,
194194
if self.logger:
195195
self.logger.debug('Response: %s' % (response_data.result))
196196
if self.raw:
197-
## no need to return success, errors, or messages as they return via an exception
198197
result = {}
199-
if 'result' in response_data:
200-
result['result'] = response_data['result']
198+
# theres always a result value
199+
result['result'] = response_data['result']
200+
# theres may not be a result_info on every call
201201
if 'result_info' in response_data:
202202
result['result_info'] = response_data['result_info']
203-
if 'total_count' in response_data:
204-
result['total_count'] = response_data['total_count']
203+
# no need to return success, errors, or messages as they return via an exception
205204
else:
206205
# theres always a result value
207206
result = response_data['result']

0 commit comments

Comments
 (0)