Skip to content

Commit

Permalink
fix: Use logging level info when file_cache is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Dec 5, 2020
1 parent 334b6e6 commit 3d73a6c
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 3d73a6c

Please sign in to comment.