From cec1fca7d4e687b4030c3b003404fb2d7564d279 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Wed, 27 Oct 2021 19:21:38 +0000 Subject: [PATCH] Fixed possible askquestion bug --- vevoxqa.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vevoxqa.py b/vevoxqa.py index 34f83ee..0e4805e 100644 --- a/vevoxqa.py +++ b/vevoxqa.py @@ -65,11 +65,6 @@ class VevoxQA: def askquestion(self, question): self.ws.send(self.askws.format(self.topicId, question, self.requestid)) data = loads(self.ws.recv()) - while "message" not in data or data["message"] != "DeviceDiscussionMessageList": - data = loads(self.ws.recv()) - - return data["data"]["messages"][0]["messageId"] - # Like a question returns true if successful def likequestion(self, qid):