diff --git a/dedal/build_cache/BuildCacheManager.py b/dedal/build_cache/BuildCacheManager.py
index dd20483a68e4cf1d67ffab4461dfe2a7e3f08cd3..1ca1ce955904ac7764b7bc2e54d4fd1d46b241f7 100644
--- a/dedal/build_cache/BuildCacheManager.py
+++ b/dedal/build_cache/BuildCacheManager.py
@@ -82,7 +82,7 @@ class BuildCacheManager(BuildCacheManagerInterface):
             return self._client.get_tags(self._oci_registry_path)
         except Exception as e:
             self._logger.error(f"Failed to list tags: {e}")
-        return []
+            return []
 
     def download(self, download_dir: Path):
         """