fix(cache): pass Path object to storage.upload in store_stl_cache

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 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 21:35:10 +01:00
parent ced64055f2
commit 71f8df67f3
@@ -42,7 +42,7 @@ def store_stl_cache(step_hash: str, quality: str, stl_path: str) -> None:
storage = get_storage() storage = get_storage()
key = _cache_key(step_hash, quality) key = _cache_key(step_hash, quality)
try: try:
storage.upload(stl_path, key) storage.upload(Path(stl_path), key)
logger.info("Stored STL cache: %s", key) logger.info("Stored STL cache: %s", key)
except Exception as exc: except Exception as exc:
logger.warning("Failed to store STL cache %s: %s", key, exc) logger.warning("Failed to store STL cache %s: %s", key, exc)