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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user