()
| 30 | session = requests.Session() |
| 31 | |
| 32 | def read_token_cache(): |
| 33 | try: |
| 34 | if not TOKEN_CACHE_PATH.exists(): |
| 35 | return {} |
| 36 | return json.loads(TOKEN_CACHE_PATH.read_text(encoding="utf-8")) or {} |
| 37 | except Exception: |
| 38 | return {} |
| 39 | |
| 40 | def write_token_cache(cache): |
| 41 | try: |
no outgoing calls
no test coverage detected