mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03:00
except named exception handling
This commit is contained in:
parent
af38f151a2
commit
5ca182a20d
6 changed files with 10 additions and 10 deletions
|
|
@ -280,9 +280,9 @@ def check_gplay(app):
|
|||
try:
|
||||
resp = urllib2.urlopen(req, None, 20)
|
||||
page = resp.read()
|
||||
except urllib2.HTTPError, e:
|
||||
except urllib2.HTTPError as e:
|
||||
return (None, str(e.code))
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
return (None, 'Failed:' + str(e))
|
||||
|
||||
version = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue