Use 'except ... as' syntax in contrib/ and test/ too

This commit is contained in:
Marius Gedminas 2015-08-27 21:58:51 +03:00
commit 9ae66a7f5c
14 changed files with 25 additions and 25 deletions

View file

@ -412,7 +412,7 @@ def setup():
pyrax.keyring_auth(keyring_username, region=region)
else:
pyrax.set_credential_file(creds_file, region=region)
except Exception, e:
except Exception as e:
sys.stderr.write("%s: %s\n" % (e, e.message))
sys.exit(1)