Skip to content

Commit 0e12f71

Browse files
committed
fix: Use logging level info when file_cache is not available
1 parent b2ea122 commit 0e12f71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

googleapiclient/discovery_cache/__init__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def autodetect():
4444
from . import file_cache
4545

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

0 commit comments

Comments
 (0)