fixed metadata filtering + tests

This commit is contained in:
bigcat88
2025-09-09 17:28:19 +03:00
parent 0ef73e95fd
commit 357193f7b5
4 changed files with 403 additions and 22 deletions

View File

@@ -283,7 +283,7 @@ async def upload_asset(request: web.Request) -> web.Response:
"Uploaded file hash does not match provided hash.",
)
return _error_response(400, "BAD_REQUEST", "Invalid inputs.")
except Exception as e:
except Exception:
if tmp_path and os.path.exists(tmp_path):
os.remove(tmp_path)
return _error_response(500, "INTERNAL", "Unexpected server error.")