Dec-05-2018, 11:03 PM
(This post was last modified: Dec-05-2018, 11:03 PM by anandoracledba.)
Try this...
while True: data = json.loads(self.rfile.read( length ).decode('utf-8')) order_status = data['order_status']['name'] if not order_status == "Awaiting Payment": << further code >>Line indentation is very important in Python.