Skip to content

Commit dd28ec5

Browse files
alessio-locatelliJWCook
authored andcommitted
fix: delete redundant str() call
The argument is already `str`.
1 parent ff3040b commit dd28ec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • aiohttp_client_cache/backends

‎aiohttp_client_cache/backends/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async def get_response(self, key: str) -> CachedResponse | None:
164164
# Attempt to fetch the cached response
165165
logger.debug(f'Attempting to get cached response for key: {key}')
166166
try:
167-
response = await self.responses.read(key) or await self._get_redirect_response(str(key))
167+
response = await self.responses.read(key) or await self._get_redirect_response(key)
168168
# Catch "quiet" deserialization errors due to upgrading attrs
169169
if response is not None:
170170
assert response.method # type: ignore

0 commit comments

Comments
 (0)