Skip to content
Permalink
Browse files

fix: Use logging level info when file_cache is not available (#1125)

  • Loading branch information
parthea committed Dec 8, 2020
1 parent b2ea122 commit 0b32e69900eafec2cd1197ba054d4f9a765a3f29
Showing with 3 additions and 2 deletions.
  1. +3 −2 googleapiclient/discovery_cache/__init__.py
@@ -44,6 +44,7 @@ def autodetect():
from . import file_cache

return file_cache.cache
except Exception as e:
LOGGER.warning(e, exc_info=True)
except Exception:
LOGGER.info("file_cache is only supported with oauth2client<4.0.0",
exc_info=False)
return None

0 comments on commit 0b32e69

Please sign in to comment.