diff options
Diffstat (limited to '9kwpyqt.py')
-rwxr-xr-x | 9kwpyqt.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -224,8 +224,12 @@ class CaptchaGUI(QWidget): for stat in datatmp: tmp = stat.split('=') data[tmp[0]] = tmp[1] - self.currentQueued = int(data['queue']) - self.currentWorker = int(data['workertext']) + self.currentQueued = 0 + self.currentWorker = 0 + if 'queue' in data and data['queue'].isnumeric(): + self.currentQueued = int(data['queue']) + if 'workertext' in data and data['workertext'].isnumeric(): + self.currentWorker = int(data['workertext']) self.updateStats() self.networkQueueReply.deleteLater() QTimer.singleShot(5000, self.getQueue) |