1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Extra http resilience in checkupdates

This commit is contained in:
Ciaran Gultnieks 2013-06-03 10:25:20 +01:00
parent 785e17428a
commit bd46fcfa99

View File

@ -173,6 +173,7 @@ def check_market(app):
req = urllib2.Request(url, None, headers)
try:
resp = urllib2.urlopen(req, None, 20)
page = resp.read()
except urllib2.HTTPError, e:
if e.code == 404:
return (None, 'Not in market')
@ -180,7 +181,6 @@ def check_market(app):
return (None, 'Failed with HTTP status' + str(req.getcode()))
except Exception, e:
return (None, 'Failed:' + str(e))
page = resp.read()
version = None
vercode = None