Fix import for currently unused upload_asset_from_temp_path function

This commit is contained in:
Jedrzej Kosinski 2026-01-27 16:28:05 -08:00
parent b16390c2fd
commit 32d4888d99

View File

@ -173,6 +173,7 @@ def upload_asset_from_temp_path(
expected_asset_hash: str | None = None, expected_asset_hash: str | None = None,
) -> schemas_out.AssetCreated: ) -> schemas_out.AssetCreated:
try: try:
import app.assets.hashing as hashing
digest = hashing.blake3_hash(temp_path) digest = hashing.blake3_hash(temp_path)
except Exception as e: except Exception as e:
raise RuntimeError(f"failed to hash uploaded file: {e}") raise RuntimeError(f"failed to hash uploaded file: {e}")