Description
File "oauth2client/oauth2client/util.py", line 142, in positional_wrapper
return wrapped(_args, *_kwargs)
File "google-api-python-client/googleapiclient/discovery.py", line 193, in build
content = _retrieve_discovery_doc(requested_url, http, cache_discovery, cache)
File "googleapiclient/discovery.py", line 236, in _retrieve_discovery_doc
raise UnknownApiNameOrVersion("name: %s version: %s" % (serviceName,
NameError: name 'serviceName' is not defined
The same for version
too, not passed to this function
Other http errors are also not handled.
I suggest you move out the codes inside function _retrieve_discovery_doc
, and remove this function because it's only used once.
The code is messy