Clear all configuration (file and keyring).
(self)
| 310 | except (KeyringError, Exception): |
| 311 | pass |
| 312 | # Also remove fallback credentials file |
| 313 | if CREDENTIALS_FILE.exists(): |
| 314 | try: |
| 315 | CREDENTIALS_FILE.unlink() |
| 316 | except OSError: |
| 317 | pass |
| 318 | self._api_key = None |
| 319 | |
| 320 | def clear(self): |
| 321 | """Clear all configuration (file and keyring).""" |
| 322 | # Delete API key from keyring |
| 323 | self.delete_api_key() |
| 324 | |
| 325 | # Delete config file |
no test coverage detected