use f-strings

This commit is contained in:
Niko 2025-01-23 19:05:27 +01:00 committed by GitHub
parent 81788935cb
commit 1d920ff5df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -84,9 +84,9 @@ class CacheFileHandler(CacheHandler):
if error.errno == errno.ENOENT:
logger.debug(f"cache does not exist at: {self.cache_path}")
else:
logger.warning("Couldn't read cache at: %s", self.cache_path)
logger.warning(f"Couldn't read cache at: {self.cache_path}")
except json.JSONDecodeError:
logger.warning("Couldn't decode JSON from cache at: %s", self.cache_path)
logger.warning(f"Couldn't decode JSON from cache at: {self.cache_path}")
return token_info