mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Fix python3 checkupdates crashes
This commit is contained in:
parent
6cecb69bf2
commit
5d296f8c61
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ def check_http(app):
|
|||
logging.debug("...requesting {0}".format(urlcode))
|
||||
req = urllib.request.Request(urlcode, None)
|
||||
resp = urllib.request.urlopen(req, None, 20)
|
||||
page = resp.read()
|
||||
page = resp.read().decode('utf-8')
|
||||
|
||||
m = re.search(codeex, page)
|
||||
if not m:
|
||||
|
|
@ -67,7 +67,7 @@ def check_http(app):
|
|||
logging.debug("...requesting {0}".format(urlver))
|
||||
req = urllib.request.Request(urlver, None)
|
||||
resp = urllib.request.urlopen(req, None, 20)
|
||||
page = resp.read()
|
||||
page = resp.read().decode('utf-8')
|
||||
|
||||
m = re.search(verex, page)
|
||||
if not m:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue