chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785e174
)
Extra http resilience in checkupdates
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 3 Jun 2013 09:25:20 +0000
(10:25 +0100)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Mon, 3 Jun 2013 09:25:20 +0000
(10:25 +0100)
fdroidserver/checkupdates.py
patch
|
blob
|
history
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index 65f5b5d8463f7ccaa1217596203681da87567321..b1db1d10da2971282dfbfd3c142fed22704a53c6 100644
(file)
--- a/
fdroidserver/checkupdates.py
+++ b/
fdroidserver/checkupdates.py
@@
-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