diff --git a/client/protocols/help.py b/client/protocols/help.py index 5c972b51..1e39e250 100644 --- a/client/protocols/help.py +++ b/client/protocols/help.py @@ -134,15 +134,18 @@ def _get_feedback(self, req_id): print("\nThank you for your feedback.\n") - if req_id: - feedback_payload = { - 'version': 'v2', - 'key': self.FEEDBACK_KEY, - 'requestId': req_id, - 'feedback': feedback - } - feedback_response = requests.post(self.FEEDBACK_ENDPOINT, json=feedback_payload).json() - return feedback_response.get('status') + else: + feedback = 0 + + if req_id: + feedback_payload = { + 'version': 'v2', + 'key': self.FEEDBACK_KEY, + 'requestId': req_id, + 'feedback': feedback + } + feedback_response = requests.post(self.FEEDBACK_ENDPOINT, json=feedback_payload).json() + return feedback_response.get('status') def _get_binary_feedback(self, req_id): skip_str = ' Hit Enter to skip.' if not self.FEEDBACK_REQUIRED else ''