From 71f8df67f3294553b894d1f862f82ba9f614c892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Fri, 6 Mar 2026 21:35:10 +0100 Subject: [PATCH] fix(cache): pass Path object to storage.upload in store_stl_cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit storage.upload() expects Path, not str — str has no .name attribute, causing 'str object has no attribute name' warnings on every STL cache write. Co-Authored-By: Claude Sonnet 4.6 --- backend/app/domains/products/cache_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/domains/products/cache_service.py b/backend/app/domains/products/cache_service.py index 8eb2b81..dec6166 100644 --- a/backend/app/domains/products/cache_service.py +++ b/backend/app/domains/products/cache_service.py @@ -42,7 +42,7 @@ def store_stl_cache(step_hash: str, quality: str, stl_path: str) -> None: storage = get_storage() key = _cache_key(step_hash, quality) try: - storage.upload(stl_path, key) + storage.upload(Path(stl_path), key) logger.info("Stored STL cache: %s", key) except Exception as exc: logger.warning("Failed to store STL cache %s: %s", key, exc)