diff options
author | André Glüpker <git@wgmd.de> | 2016-04-06 17:16:33 +0200 |
---|---|---|
committer | André Glüpker <git@wgmd.de> | 2016-04-06 17:16:33 +0200 |
commit | a2d9a8eaf5fece86057aec951aa8b9f006233710 (patch) | |
tree | 876beaf7be3a44757fbdd15d54099e986a050217 /9kwpyqt.py | |
parent | ca3b788323222dc7a21738ae1ca25ea66e6d09b3 (diff) | |
download | 9kwpyqt-a2d9a8eaf5fece86057aec951aa8b9f006233710.tar.gz 9kwpyqt-a2d9a8eaf5fece86057aec951aa8b9f006233710.tar.bz2 9kwpyqt-a2d9a8eaf5fece86057aec951aa8b9f006233710.zip |
Quick and dirty crash fix
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) |