We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31bf383 commit e954a86Copy full SHA for e954a86
googleapiclient/discovery.py
@@ -385,6 +385,8 @@ def _retrieve_discovery_doc(
385
# we can attempt to retreive the static discovery document from the library.
386
if static_discovery:
387
content = discovery_cache.get_static_doc(serviceName, version)
388
+ if content:
389
+ return content
390
391
# If the content is None, retrieve the discovery doc from the internet
392
# because it is not in the cache or the static doc directory.
0 commit comments