Skip to content

Commit

Permalink
fix: Use logging level info when file_cache is not available (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Dec 8, 2020
1 parent b2ea122 commit 0b32e69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions googleapiclient/discovery_cache/__init__.py
Expand Up @@ -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.