Fix import for currently unused upload_asset_from_temp_path function
This commit is contained in:
parent
b16390c2fd
commit
32d4888d99
|
|
@ -173,6 +173,7 @@ def upload_asset_from_temp_path(
|
|||
expected_asset_hash: str | None = None,
|
||||
) -> schemas_out.AssetCreated:
|
||||
try:
|
||||
import app.assets.hashing as hashing
|
||||
digest = hashing.blake3_hash(temp_path)
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"failed to hash uploaded file: {e}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue