except named exception handling

This commit is contained in:
NeroBurner 2015-09-17 13:25:08 +02:00 committed by Daniel Martí
parent af38f151a2
commit 5ca182a20d
6 changed files with 10 additions and 10 deletions

View file

@ -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