summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x9kwpyqt.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index b0bf71d..a0d2534 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -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)