diff --git a/src/blacksmith/middleware/_async/http_cache.py b/src/blacksmith/middleware/_async/http_cache.py index b2344c38..559410d0 100644 --- a/src/blacksmith/middleware/_async/http_cache.py +++ b/src/blacksmith/middleware/_async/http_cache.py @@ -66,9 +66,9 @@ def __init__( async def initialize(self) -> None: try: await self._cache.initialize() - except AttributeError: # coverage-ignore + except AttributeError: # coverage: ignore # the redis sync version does not implement this method - pass + ... async def cache_response( self, diff --git a/src/blacksmith/middleware/_sync/http_cache.py b/src/blacksmith/middleware/_sync/http_cache.py index 427b9027..de1c7ef2 100644 --- a/src/blacksmith/middleware/_sync/http_cache.py +++ b/src/blacksmith/middleware/_sync/http_cache.py @@ -66,9 +66,9 @@ def __init__( def initialize(self) -> None: try: self._cache.initialize() - except AttributeError: # coverage-ignore + except AttributeError: # coverage: ignore # the redis sync version does not implement this method - pass + ... def cache_response( self,