diff options
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x | 9kwpyqt.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -219,14 +219,15 @@ class CaptchaGUI(QWidget): self.networkQueueReply.finished.connect(self.getQueueFinished) def getQueueFinished(self): + # Should be name=value|name2=value2|name3=value3... content = str(self.networkQueueReply.readAll(), encoding='utf-8') datatmp = content.split('|') data = dict() for stat in datatmp: - tmp = stat.split('=') - data[tmp[0]] = tmp[1] - self.currentQueued = 0 - self.currentWorker = 0 + if '=' in stat: + tmp = stat.split('=') + data[tmp[0]] = tmp[1] + self.currentQueued = self.currentWorker = 0 if 'queue' in data and data['queue'].isnumeric(): self.currentQueued = int(data['queue']) if 'workertext' in data and data['workertext'].isnumeric(): |