Skip to content

NameError: name 'serviceName' is not defined #130

@ilius

Description

@ilius

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

Metadata

Metadata

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions