Standardize server not found error handling

This commit is contained in:
Ross Scroggs
2015-12-19 16:17:09 -08:00
parent 2bc0dd5fbe
commit 24d5a169f6

View File

@ -585,8 +585,7 @@ def buildGAPIObject(api):
except googleapiclient.errors.UnknownApiNameOrVersion:
service = getServiceFromDiscoveryDocument(api, version, http)
except httplib2.ServerNotFoundError as e:
sys.stderr.write(u'{0}{1}\n'.format(ERROR_PREFIX, e))
sys.exit(8)
systemErrorExit(4, e)
except httplib2.CertificateValidationUnsupported:
noPythonSSLExit()
try: