Bug fix: Don't crash python if page unavaliable on version checking
This commit is contained in:
parent
3eb0da7e4f
commit
91c50f9b88
1 changed files with 2 additions and 2 deletions
|
@ -33,11 +33,11 @@ def updateCheck(q,num):
|
||||||
try:
|
try:
|
||||||
f = urllib.urlopen("http://distantsphere.com/pesterchum.php?" + data)
|
f = urllib.urlopen("http://distantsphere.com/pesterchum.php?" + data)
|
||||||
except:
|
except:
|
||||||
print "Update check Failure: 1"; q.put((False,1))
|
print "Update check Failure: 1"; return q.put((False,1))
|
||||||
newest = f.read()
|
newest = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
if not newest or newest[0] == "<":
|
if not newest or newest[0] == "<":
|
||||||
print "Update check Failure: 2"; q.put((False,2))
|
print "Update check Failure: 2"; return q.put((False,2))
|
||||||
try:
|
try:
|
||||||
(full, major, minor, status, revision, url) = verStrToNum(newest)
|
(full, major, minor, status, revision, url) = verStrToNum(newest)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|
Loading…
Reference in a new issue